Skip to content

Instantly share code, notes, and snippets.

@metasoarous
Created September 12, 2009 10:10
Show Gist options
  • Save metasoarous/185787 to your computer and use it in GitHub Desktop.
Save metasoarous/185787 to your computer and use it in GitHub Desktop.
attr_accessor :creation_setting_attributes
def comments_attributes=(attributes)
attributes.each { |att| self.comments.build(att) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment