diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-25 18:03:56 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-25 18:03:56 -0700 |
commit | 9efbf51adbebcf32787cff6b470218be748b5119 (patch) | |
tree | 8cfaf3f278e770b2a7095a9344920d4f8bf5e4c9 | |
parent | 12859b89e574a2965ae94053dc0cdaf92dcf8e3a (diff) | |
download | rails-9efbf51adbebcf32787cff6b470218be748b5119.tar.gz rails-9efbf51adbebcf32787cff6b470218be748b5119.tar.bz2 rails-9efbf51adbebcf32787cff6b470218be748b5119.zip |
unfactoring metaprogramming
-rw-r--r-- | lib/arel/algebra/relations/utilities/externalization.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/arel/algebra/relations/utilities/externalization.rb b/lib/arel/algebra/relations/utilities/externalization.rb index edd8f99221..c7a7d9ca78 100644 --- a/lib/arel/algebra/relations/utilities/externalization.rb +++ b/lib/arel/algebra/relations/utilities/externalization.rb @@ -1,7 +1,8 @@ module Arel class Externalization < Compound - attributes :relation - deriving :initialize, :== + def == other + super || Externalization === other && relation == other.relation + end def wheres [] |