lib/model_set/query.rb in ninjudd-model_set-0.10.4 vs lib/model_set/query.rb in ninjudd-model_set-0.10.5

- old
+ new

@@ -25,9 +25,13 @@ @page = page ? page.to_i : nil @offset = nil clear_limited_cache! end + def limit_enabled? + true # Override if limit is not possible for subclass. + end + def limit!(limit, offset = nil) @limit = limit ? limit.to_i : nil @offset = offset ? offset.to_i : nil @page = nil if offset clear_limited_cache!