Permalink
Browse files

Remove default values for Relation#limit/offset/from/create_with

  • Loading branch information...
lifo committed Aug 31, 2010
1 parent c07f0ae commit 7694b97ddf1682315988e7007c27ffd8cce335f6
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/lib/active_record/relation/query_methods.rb
@@ -59,13 +59,13 @@ def having(*args)
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 @@ def readonly(value = true)
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

0 comments on commit 7694b97

Please sign in to comment.