Module: AttrSearchable
- Defined in:
- lib/attr_searchable.rb,
lib/attr_searchable/version.rb,
lib/attr_searchable/arel/visitors.rb
Defined Under Namespace
Modules: Arel, ClassMethods, Parser Classes: HashParser, IncompatibleDatatype, NoSearchableAttributes, ParseError, RuntimeError, SpecificationError, UnknownAttribute, UnknownColumn
Constant Summary collapse
- VERSION =
"0.0.7"
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/attr_searchable.rb', line 36 def self.included(base) warn "[DEPRECATION] The 'attr_searchable' gem has been deprecated and replaced by 'search_cop'. See: https://github.com/mrkamel/search_cop#attrsearchable-is-now-searchcop" base.class_attribute :searchable_attributes base.searchable_attributes = {} base.class_attribute :searchable_attribute_options base. = {} base.class_attribute :searchable_attribute_aliases base.searchable_attribute_aliases = {} base.extend ClassMethods end |