Class: Pulitzer::ContentElementType

Inherits:
ApplicationRecord show all
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

Returns:

  • (Boolean)


17
18
19
# File 'app/models/pulitzer/content_element_type.rb', line 17

def has_styles?
  [:clickable].include? type
end

#typeObject



7
8
9
# File 'app/models/pulitzer/content_element_type.rb', line 7

def type
  name.downcase.to_sym
end