Module: FuzzyInfer::ActiveRecordClassMethods

Defined in:
lib/fuzzy_infer/active_record_class_methods.rb

Instance Method Summary collapse

Instance Method Details

#fuzzy_infer(options = {}) ⇒ Object

Configure fuzzy inferences see test/helper.rb for an example



7
8
9
10
11
# File 'lib/fuzzy_infer/active_record_class_methods.rb', line 7

def fuzzy_infer(options = {})
  options = ::Hashie::Mash.new options
  Registry.instance[name] ||= {}
  Registry.instance[name][options.target] = options
end