lib/search_flip/criteria.rb in search_flip-3.0.0.beta5 vs lib/search_flip/criteria.rb in search_flip-3.0.0.beta6
- old
+ new
@@ -204,11 +204,11 @@
# @example
# UserIndex.where("...").with_settings(connection: ProxyConnection)
#
# @return [SearchFlip::Criteria] Simply returns self
- def with_settings(*args)
+ ruby2_keywords def with_settings(*args)
fresh.tap do |criteria|
criteria.target = target.with_settings(*args)
end
end
@@ -584,9 +584,11 @@
merge(target.send(name, *args, &block))
else
super
end
end
+
+ ruby2_keywords :method_missing
def_delegators :response, :total_entries, :total_count, :current_page, :previous_page,
:prev_page, :next_page, :first_page?, :last_page?, :out_of_range?, :total_pages,
:hits, :ids, :count, :size, :length, :took, :aggregations, :suggestions,
:scope, :results, :records, :scroll_id, :raw_response