Skip to content

Commit

Permalink
Use remove_possible_method instead of remove_method with a condit…
Browse files Browse the repository at this point in the history
…ional.
  • Loading branch information
lowjoel committed Jul 23, 2015
1 parent 00748d9 commit 6172985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record/userstamp/utilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def self.remove_association(model, association)

model.generated_association_methods.module_eval do
methods.each do |method|
remove_method(method) if method_defined?(method)
remove_possible_method(method)
end
end
end
Expand Down

0 comments on commit 6172985

Please sign in to comment.