Module: Spotlight::SolrDocument::ActiveModelConcern::ClassMethods
- Defined in:
- app/models/concerns/spotlight/solr_document/active_model_concern.rb
Instance Method Summary collapse
-
#dangerous_attribute_method?(*args) ⇒ Boolean
needed for Rails 4.1 + act_as_taggable.
-
#generated_association_methods ⇒ Object
needed for Rails 4.1 + act_as_taggable.
Instance Method Details
#dangerous_attribute_method?(*args) ⇒ Boolean
needed for Rails 4.1 + act_as_taggable
13 14 15 |
# File 'app/models/concerns/spotlight/solr_document/active_model_concern.rb', line 13 def dangerous_attribute_method? *args false end |
#generated_association_methods ⇒ Object
needed for Rails 4.1 + act_as_taggable
18 19 20 21 22 23 24 |
# File 'app/models/concerns/spotlight/solr_document/active_model_concern.rb', line 18 def generated_association_methods @generated_association_methods ||= begin mod = const_set(:GeneratedAssociationMethods, Module.new) include mod mod end end |