Skip to content

Commit

Permalink
Fix Casted#hash
Browse files Browse the repository at this point in the history
There is no @Class variable.
  • Loading branch information
matthewd committed Jul 27, 2016
1 parent 0d70b57 commit f91d657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arel/nodes/casted.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def initialize val, attribute
def nil?; @val.nil?; end

def hash
[@class, @val, @attribute].hash
[self.class, val, attribute].hash
end

def eql? other
Expand Down

0 comments on commit f91d657

Please sign in to comment.