lib/search_flip/criteria.rb in search_flip-2.3.1 vs lib/search_flip/criteria.rb in search_flip-2.3.2

- old
+ new

@@ -249,11 +249,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 @@ -884,10 +884,10 @@ def respond_to_missing?(name, *args) target.respond_to?(name, *args) end - def method_missing(name, *args, &block) + ruby2_keywords def method_missing(name, *args, &block) if target.respond_to?(name) merge(target.send(name, *args, &block)) else super end