Skip to content

Commit

Permalink
Fixing assign attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
miry committed Apr 26, 2013
1 parent 0536901 commit 91cc15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails_admin/adapters/active_record/abstract_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize(object)
end

def set_attributes(attributes, role = nil)
object.assign_attributes(attributes, :as => role)
object.assign_attributes(attributes)
end

def save(options = { :validate => true })
Expand Down

0 comments on commit 91cc15c

Please sign in to comment.