Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 7694b97ddf1682315988e7007c27ffd8cce335f6 1 parent c07f0ae
@lifo lifo authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/lib/active_record/relation/query_methods.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.