diff options
Diffstat (limited to 'lib/active_relation/extensions/object.rb')
-rw-r--r-- | lib/active_relation/extensions/object.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/active_relation/extensions/object.rb b/lib/active_relation/extensions/object.rb index ea582d1ca1..2d43120f70 100644 --- a/lib/active_relation/extensions/object.rb +++ b/lib/active_relation/extensions/object.rb @@ -1,12 +1,9 @@ class Object - include ActiveRelation::SqlBuilder - def qualify self end - def to_sql(options = {}) - options.reverse_merge!(:quote => true) - options[:quote] ? quote(self) : self + def to_sql(strategy = ActiveRelation::Sql::Scalar.new) + strategy.scalar self end end
\ No newline at end of file |