diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-02-03 22:10:38 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-02-03 22:10:38 -0800 |
commit | b6c0de24fadc6b9e124a36aa35718edc027130de (patch) | |
tree | 8d965b22c97102ed269e47ad5882be8e71a068d9 /lib/active_relation/extensions | |
parent | 6c73e3dbc714a9752a66a6da51e7e41f372797b3 (diff) | |
download | rails-b6c0de24fadc6b9e124a36aa35718edc027130de.tar.gz rails-b6c0de24fadc6b9e124a36aa35718edc027130de.tar.bz2 rails-b6c0de24fadc6b9e124a36aa35718edc027130de.zip |
this is very messy but it is finally close to feature-complete
Diffstat (limited to 'lib/active_relation/extensions')
-rw-r--r-- | lib/active_relation/extensions/object.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/active_relation/extensions/object.rb b/lib/active_relation/extensions/object.rb index 2d43120f70..1db4c845be 100644 --- a/lib/active_relation/extensions/object.rb +++ b/lib/active_relation/extensions/object.rb @@ -3,6 +3,10 @@ class Object self end + def substitute(relation) + self + end + def to_sql(strategy = ActiveRelation::Sql::Scalar.new) strategy.scalar self end |