osem
https://github.com/opensuse/osem
Ruby
Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.
ApplicationHelper#updated_attributes
Recieves a PaperTrail::Version object
Outputs the list of attributes that were changed in the version (ignoring changes from one blank value to another)
Eg: If version.changeset = '{"title"=>[nil, "Premium"], "description"=>[nil, "Premium = Super cool"], "conference_id"=>[nil, 3]}'
Output will be 'title, description and conference'Edit
git clone [email protected]:opensuse/osem.git
cd osem
open app/helpers/application_helper.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-ApplicationHelper-updated_attributes-for-pr
# Commit to gitgit add app/helpers/application_helper.rbgit commit -m "better docs for ApplicationHelper#updated_attributes"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-ApplicationHelper-updated_attributes-for-pr
hub pull-request
# Celebrate!