Module: FuzzyWhere
- Defined in:
- lib/fuzzy_where.rb,
lib/fuzzy_where/config.rb,
lib/fuzzy_where/railtie.rb,
lib/fuzzy_where/version.rb,
lib/fuzzy_where/exceptions.rb,
lib/fuzzy_where/fuzzy_derivation.rb,
lib/fuzzy_where/fuzzy_relation_builder.rb,
lib/fuzzy_where/predicate_membership_degree.rb,
lib/generators/fuzzy_where/config_generator.rb,
lib/fuzzy_where/active_record_model_extension.rb,
lib/generators/fuzzy_where/predicate_generator.rb
Overview
SQLf implementation for ActiveRecord
Defined Under Namespace
Modules: ActiveRecordModelExtension, Generators Classes: ConfigError, Configuration, FuzzyDerivation, FuzzyError, FuzzyRelationBuilder, PredicateMembershipDegree, Railtie
Constant Summary collapse
- VERSION =
Gem Version
'0.5.0'.freeze
Class Method Summary collapse
-
.config ⇒ Object
Global settings for FuzzyWhere.
-
.configure {|@config ||= FuzzyWhere::Configuration.new| ... } ⇒ Object
Configures global settings for FuzzyWhere FuzzyWhere.configure do |config| config.where_method_name = :fuzzy_where end.
Class Method Details
.config ⇒ Object
Global settings for FuzzyWhere
17 18 19 |
# File 'lib/fuzzy_where/config.rb', line 17 def self.config @config end |
.configure {|@config ||= FuzzyWhere::Configuration.new| ... } ⇒ Object
Configures global settings for FuzzyWhere FuzzyWhere.configure do |config| config.where_method_name = :fuzzy_where end
12 13 14 |
# File 'lib/fuzzy_where/config.rb', line 12 def self.configure(&_block) yield @config ||= FuzzyWhere::Configuration.new end |