Class: Lightning::FeatureOptIn
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Lightning::FeatureOptIn
- Defined in:
- app/models/lightning/feature_opt_in.rb
Instance Attribute Summary collapse
-
#entity_id ⇒ Object
Returns the value of attribute entity_id.
Instance Method Summary collapse
Instance Attribute Details
#entity_id ⇒ Object
Returns the value of attribute entity_id.
5 6 7 |
# File 'app/models/lightning/feature_opt_in.rb', line 5 def entity_id @entity_id end |
Instance Method Details
#entity_name ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/models/lightning/feature_opt_in.rb', line 10 def entity_name if entity.respond_to?(:lightning_display) entity.lightning_display else entity.id end end |