Skip to content

Instantly share code, notes, and snippets.

@PabloVallejo
Created May 3, 2015 00:32
Show Gist options
  • Save PabloVallejo/2573776b1bd83af95504 to your computer and use it in GitHub Desktop.
Save PabloVallejo/2573776b1bd83af95504 to your computer and use it in GitHub Desktop.
# Assigning multiple attributes to an object at once.
@thing.assign_attributes(
:created_by => current_user,
:period_template => period_template
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment