diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2010-08-31 21:56:21 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2010-08-31 21:56:21 +0100 |
commit | 7694b97ddf1682315988e7007c27ffd8cce335f6 (patch) | |
tree | f7f51db709e1b8cb35b2ba1aaa1900d9cf882918 /activerecord/lib | |
parent | c07f0ae52ecf9a45116e1b6ab422e0af9f2c1ada (diff) | |
download | rails-7694b97ddf1682315988e7007c27ffd8cce335f6.tar.gz rails-7694b97ddf1682315988e7007c27ffd8cce335f6.tar.bz2 rails-7694b97ddf1682315988e7007c27ffd8cce335f6.zip |
Remove default values for Relation#limit/offset/from/create_with
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index bb9cdaaefe..a6a558bb6d 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -59,13 +59,13 @@ module ActiveRecord clone.tap {|r| r.having_values += Array.wrap(value) if value.present? } end - def limit(value = true) + def limit(value) copy = clone copy.limit_value = value copy end - def offset(value = true) + def offset(value) clone.tap {|r| r.offset_value = value } end @@ -82,11 +82,11 @@ module ActiveRecord clone.tap {|r| r.readonly_value = value } end - def create_with(value = true) + def create_with(value) clone.tap {|r| r.create_with_value = value } end - def from(value = true) + def from(value) clone.tap {|r| r.from_value = value } end |