Module: Fae::BaseModelConcern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/fae/base_model_concern.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
Instance Method Summary collapse
- #fae_display_field ⇒ Object
- #fae_nested_foreign_key ⇒ Object
- #fae_nested_parent ⇒ Object
- #fae_tracker_parent ⇒ Object
Instance Attribute Details
#filter ⇒ Object
Returns the value of attribute filter.
6 7 8 |
# File 'app/models/concerns/fae/base_model_concern.rb', line 6 def filter @filter end |
Instance Method Details
#fae_display_field ⇒ Object
13 14 15 |
# File 'app/models/concerns/fae/base_model_concern.rb', line 13 def fae_display_field # override this method in your model end |
#fae_nested_foreign_key ⇒ Object
25 26 27 28 |
# File 'app/models/concerns/fae/base_model_concern.rb', line 25 def fae_nested_foreign_key return if fae_nested_parent.blank? "#{fae_nested_parent}_id" end |
#fae_nested_parent ⇒ Object
17 18 19 |
# File 'app/models/concerns/fae/base_model_concern.rb', line 17 def fae_nested_parent # override this method in your model end |
#fae_tracker_parent ⇒ Object
21 22 23 |
# File 'app/models/concerns/fae/base_model_concern.rb', line 21 def fae_tracker_parent # override this method in your model end |