Class: Dhatu::PromotionEnquiry
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Dhatu::PromotionEnquiry
- Includes:
- Featureable, Readable
- Defined in:
- app/models/dhatu/promotion_enquiry.rb
Instance Method Summary collapse
- #can_be_deleted? ⇒ Boolean
-
#can_be_edited? ⇒ Boolean
Permission Methods ——————.
- #display_name ⇒ Object
-
#to_param ⇒ Object
Generic Methods —————.
Instance Method Details
#can_be_deleted? ⇒ Boolean
52 53 54 |
# File 'app/models/dhatu/promotion_enquiry.rb', line 52 def can_be_deleted? status?(:removed) end |
#can_be_edited? ⇒ Boolean
Permission Methods
48 49 50 |
# File 'app/models/dhatu/promotion_enquiry.rb', line 48 def can_be_edited? false end |
#display_name ⇒ Object
41 42 43 |
# File 'app/models/dhatu/promotion_enquiry.rb', line 41 def display_name "#{name_was}" end |
#to_param ⇒ Object
Generic Methods
37 38 39 |
# File 'app/models/dhatu/promotion_enquiry.rb', line 37 def to_param "#{id}-#{name.parameterize[0..32]}" end |