aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/extensions/object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_relation/extensions/object.rb')
-rw-r--r--lib/active_relation/extensions/object.rb16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/active_relation/extensions/object.rb b/lib/active_relation/extensions/object.rb
index b0c7ada999..d13cf9aabb 100644
--- a/lib/active_relation/extensions/object.rb
+++ b/lib/active_relation/extensions/object.rb
@@ -1,18 +1,6 @@
-class Object
- def qualify
- self
- end
-
+class Object
def bind(relation)
- self
- end
-
- def to_sql(strategy = self.strategy)
- strategy.scalar self
- end
-
- def strategy
- ActiveRelation::Sql::Scalar.new(ActiveRelation::Table.engine)
+ ActiveRelation::Scalar.new(self, relation)
end
def metaclass