class Object

Public Instance Methods

assign() click to toggle source
# File lib/generators/templates/form.rb, line 17
def assign
  model.attributes= attributes #.except(:notify_me, :author_name, :geolocate, :etc)
  # assign_association
end
assign_association() click to toggle source
# File lib/generators/templates/form.rb, line 22
def assign_association
  # (model.author || model.build_author).name = author_name
end