def check_method_definitions
        method_names = search_attributes.keys

        method_names.each do |method_name|
          next if scope_class.respond_to?(method_name)
          raise Lupa::ScopeMethodNotImplementedError, "#{method_name} is not defined on your #{self.class}::Scope class."
        end
      end
def check_method_definitions
        method_names = search_attributes.keys

        method_names.each do |method_name|
          next if scope_class.respond_to?(method_name)
          raise Lupa::ScopeMethodNotImplementedError, "#{method_name} is not defined on your #{self.class}::Scope class."
        end
      end
Internal: Check for search methods to be correctly defined using search attributes.

 * If you pass a search attribute that doesn't exist and your Scope class
   doesn't have that method defined a Lupa::ScopeMethodNotImplementedError
   exception will be raised.