Class: Pulitzer::ContentElementType
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Pulitzer::ContentElementType
- Defined in:
- app/models/pulitzer/content_element_type.rb
Instance Method Summary collapse
Methods inherited from ApplicationRecord
assoc_name, attrs_name, convert_hash_to_nested, convert_nested_assoc
Instance Method Details
#has_styles? ⇒ Boolean
17 18 19 |
# File 'app/models/pulitzer/content_element_type.rb', line 17 def has_styles? [:clickable].include? type end |
#type ⇒ Object
7 8 9 |
# File 'app/models/pulitzer/content_element_type.rb', line 7 def type name.downcase.to_sym end |