diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-17 20:24:22 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-17 20:24:22 -0700 |
commit | 724a2684139342eb4613f78bfae723ef00911ff7 (patch) | |
tree | 7a94b8876cc49cfa0c9896307010e0fedef1a88f /lib/arel/relations/table.rb | |
parent | 2c5566dbdc239f4fc56dc19ca6e343e091e4d022 (diff) | |
download | rails-724a2684139342eb4613f78bfae723ef00911ff7.tar.gz rails-724a2684139342eb4613f78bfae723ef00911ff7.tar.bz2 rails-724a2684139342eb4613f78bfae723ef00911ff7.zip |
performance enhancing drugs
Diffstat (limited to 'lib/arel/relations/table.rb')
-rw-r--r-- | lib/arel/relations/table.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/relations/table.rb b/lib/arel/relations/table.rb index b95e51a307..06625dd52a 100644 --- a/lib/arel/relations/table.rb +++ b/lib/arel/relations/table.rb @@ -17,7 +17,7 @@ module Arel end def column_for(attribute) - self[attribute] and columns.detect { |c| c.name == attribute.name.to_s } + has_attribute?(attribute) and columns.detect { |c| c.name == attribute.name.to_s } end def columns @@ -29,7 +29,7 @@ module Arel end def ==(other) - self.class == other.class and + Table == other.class and name == other.name end end |