aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/extensions/range.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-16 20:47:02 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-16 20:47:02 -0700
commit89b354bf97d0a981376d36f2f8a7ba6a87fe2aa8 (patch)
tree2e7fe3a9a814bc0ffacc48c50e0bc4d5de18bb0d /lib/active_relation/extensions/range.rb
parent9771b2f3a3fdb45517a132228a1129718acd2fac (diff)
downloadrails-89b354bf97d0a981376d36f2f8a7ba6a87fe2aa8.tar.gz
rails-89b354bf97d0a981376d36f2f8a7ba6a87fe2aa8.tar.bz2
rails-89b354bf97d0a981376d36f2f8a7ba6a87fe2aa8.zip
added attribute.eq(nil)
- produces attribute IS NULL
Diffstat (limited to 'lib/active_relation/extensions/range.rb')
-rw-r--r--lib/active_relation/extensions/range.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_relation/extensions/range.rb b/lib/active_relation/extensions/range.rb
index 0218a0ab44..d7329efe34 100644
--- a/lib/active_relation/extensions/range.rb
+++ b/lib/active_relation/extensions/range.rb
@@ -3,7 +3,7 @@ class Range
formatter.range self.begin, self.end
end
- def predicate_sql
+ def inclusion_predicate_sql
"BETWEEN"
end
end \ No newline at end of file