activeadmin
https://github.com/activeadmin/activeadmin
Ruby
The administration framework for Ruby on Rails applications.
ActiveAdmin::OutputSafetyHelper#to_sentence
Converts the array to a comma-separated sentence where the last element is joined by the connector word. This is the html_safe-aware version of ActiveSupport's {Array#to_sentence}[http://api.rubyonrails.org/classes/Array.html#method-i-to_sentence]. Copied from Rails 5 to support Rails 4. https://github.com/rails/rails/blob/9c35bf2a6a27431c6aa283db781c19f61c5155be/actionview/lib/action_view/helpers/output_safety_helper.rb#L43
Edit
git clone [email protected]:activeadmin/activeadmin.git
cd activeadmin
open lib/active_admin/helpers/output_safety_helper.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ActiveAdmin--OutputSafetyHelper-to_sentence-for-pr
# Commit to gitgit add lib/active_admin/helpers/output_safety_helper.rbgit commit -m "better docs for ActiveAdmin::OutputSafetyHelper#to_sentence"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ActiveAdmin--OutputSafetyHelper-to_sentence-for-pr
hub pull-request
# Celebrate!