Skip to content

Commit

Permalink
Use .alias_method_chain
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed Apr 29, 2015
1 parent 87a43d8 commit 45eb553
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/active_interaction/backports.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ module Details
attr_reader :details

%w[initialize initialize_dup add clear delete].each do |method|
alias_method "#{method}_without_details", method
alias_method method, "#{method}_with_details"
alias_method_chain method, :details
end
end

Expand Down

0 comments on commit 45eb553

Please sign in to comment.