Skip to content

Commit

Permalink
* Remove usage of alias_method_chain
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Mar 31, 2017
1 parent a58002b commit 4e2e34b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rails_admin/adapters/mongoid/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ class << self
def rails_admin(&block)
RailsAdmin.config(self, &block)
end
alias_method_chain :accepts_nested_attributes_for, :rails_admin

alias_method :accepts_nested_attributes_for_without_rails_admin, :accepts_nested_attributes_for
alias_method :accepts_nested_attributes_for, :accepts_nested_attributes_for_with_rails_admin
end
end

Expand Down

0 comments on commit 4e2e34b

Please sign in to comment.