Class: Para::ComponentSection

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

Instance Method Summary collapse

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