Sha256: adf0f853b7eb089486ce32335269443dcd43d5a6a285f176f48cd5ff5a29bac0

Contents?: true

Size: 427 Bytes

Versions: 26

Compression:

Stored size: 427 Bytes

Contents

module Plutonium
  module Definition
    module Search
      extend ActiveSupport::Concern

      included do
        class_attribute :_search_definition, instance_accessor: false, instance_predicate: false
      end

      def search_definition
        self.class._search_definition
      end

      class_methods do
        def search(&block)
          self._search_definition = block
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
plutonium-0.15.2 lib/plutonium/definition/search.rb
plutonium-0.15.1 lib/plutonium/definition/search.rb
plutonium-0.15.0 lib/plutonium/definition/search.rb
plutonium-0.15.0.pre.rc3 lib/plutonium/definition/search.rb
plutonium-0.15.0.pre.rc2 lib/plutonium/definition/search.rb
plutonium-0.15.0.pre.rc1 lib/plutonium/definition/search.rb