Class: Para::ComponentSection

Inherits:
ApplicationRecord show all
Defined in:
app/models/para/component_section.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

with_belongs_to_optional_option_if_needed

Instance Method Details

#nameObject



11
12
13
14
15
16
# File 'app/models/para/component_section.rb', line 11

def name
  read_attribute(:name) || ::I18n.t(
    "components.section.#{identifier}",
    default: identifier.humanize
  )
end