Skip to content

Commit

Permalink
Update for AR 3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarnette committed Jun 14, 2011
1 parent 63ff92b commit e9c2ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modelizer.rb
Expand Up @@ -45,7 +45,7 @@ def self.underscore classname
end

def assign_model_template_attributes model, attributes
model.send :attributes=, attributes, false
model.assign_attributes attributes, without_protection: true
model
end

Expand Down

0 comments on commit e9c2ad5

Please sign in to comment.