Skip to content

Commit

Permalink
[#155929975] Remove #alias_method_chain
Browse files Browse the repository at this point in the history
- #alias_method_chain has been deprecated in Rails 5
See: rails/rails#19434
  • Loading branch information
Gabriel Sandoval committed Mar 21, 2018
1 parent d65f766 commit 8759010
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/active_model/pagination_serializer.rb
Expand Up @@ -22,7 +22,8 @@ def initialize_with_pagination(object, opts={})
initialize_without_pagination(object, opts)
end

alias_method_chain :initialize, :pagination
alias_method :initialize_without_pagination, :initialize
alias_method :initialize, :initialize_with_pagination

private

Expand Down

0 comments on commit 8759010

Please sign in to comment.