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'

Source | Google | Stack overflow

Edit

git clone [email protected]:opensuse/osem.git

cd osem

open app/helpers/application_helper.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ApplicationHelper-updated_attributes-for-pr


# Commit to git

git add app/helpers/application_helper.rbgit commit -m "better docs for ApplicationHelper#updated_attributes"


# Open pull request

gem 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!