lib/mobility/backends/sequel/query_methods.rb in mobility-0.3.6 vs lib/mobility/backends/sequel/query_methods.rb in mobility-0.4.0

- old
+ new

@@ -11,12 +11,13 @@ =end class QueryMethods < Module # @param [Array<String>] attributes Translated attributes def initialize(attributes, _) @attributes = attributes.map!(&:to_sym) - @attributes_extractor = lambda do |cond| - cond.is_a?(Hash) && Util.presence(cond.keys & attributes) - end + end + + def extract_attributes(cond) + cond.is_a?(Hash) && Util.presence(cond.keys & @attributes) end end end end end