Sha256: 15548e091e005e403b8d534028741f7304485ae3bcd9e7eefde39ad0642ddec3
Contents?: true
Size: 371 Bytes
Versions: 20
Compression:
Stored size: 371 Bytes
Contents
module Searchlogic module NamedScopes module Base def condition?(name) existing_condition?(name) end private def existing_condition?(name) return false if name.blank? @valid_scope_names ||= scopes.keys.reject { |k| k == :scoped } @valid_scope_names.include?(name.to_sym) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems