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

Version Path
searchlogic-2.5.19 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.18 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.17 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.16 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.15 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.14 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.13 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.12 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.11 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.10 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.9 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.8 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.7 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.6 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.5 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.4 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.3 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.2 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.1 lib/searchlogic/named_scopes/base.rb
searchlogic-2.5.0 lib/searchlogic/named_scopes/base.rb