Module: Searchlogic::CoreExt::Proc

Defined in:
lib/searchlogic/core_ext/proc.rb

Overview

:nodoc:

Class Method Summary (collapse)

Class Method Details

+ (Object) included(klass)



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/searchlogic/core_ext/proc.rb', line 4

def self.included(klass)
  klass.class_eval do
    attr_accessor :searchlogic_options

    def searchlogic_options
      @searchlogic_options ||= {}
      @searchlogic_options[:type] ||= :string
      @searchlogic_options
    end
  end
end