Skip to content

Commit

Permalink
Merge pull request #1 from johnwilliams/master
Browse files Browse the repository at this point in the history
Stop deprecation warnings.
  • Loading branch information
jamis committed May 11, 2011
2 parents 7d7e24e + 24842ee commit 35d5c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/safe_mass_assignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def mass_assign(attributes={})

module ClassMethods
def self.extended(base)
base.metaclass.alias_method_chain :create, :safe_mass_assignment
base.metaclass.alias_method_chain :create!, :safe_mass_assignment
base.singleton_class.alias_method_chain :create, :safe_mass_assignment
base.singleton_class.alias_method_chain :create!, :safe_mass_assignment
end

def create_with_safe_mass_assignment(attributes={}, protected_attributes={})
Expand Down

0 comments on commit 35d5c39

Please sign in to comment.