lib/ransack/nodes/attribute.rb in ransack-0.2.0 vs lib/ransack/nodes/attribute.rb in ransack-0.2.1
- old
+ new
@@ -24,10 +24,10 @@
def type
if ransacker
return ransacker.type
else
- context.type_for(attr)
+ context.type_for(self)
end
end
def cast_value(value)
value.cast_to_type(type)
\ No newline at end of file