Class: Pageflow::Theming

Inherits:
ApplicationRecord show all
Defined in:
app/models/pageflow/theming.rb

Instance Method Summary collapse

Instance Method Details

#cname_domainObject



12
13
14
# File 'app/models/pageflow/theming.rb', line 12

def cname_domain
  cname.split('.').pop(2).join('.')
end

#nameObject



16
17
18
19
20
# File 'app/models/pageflow/theming.rb', line 16

def name
  I18n.t('pageflow.admin.themings.name',
         account_name: .name,
         theme_name: 'default')
end

#theme_nameObject

Deprecated.

Depending on what you need this for, consider

scoping your code to an entry type or look at a specific entry’s theme name.



25
26
27
# File 'app/models/pageflow/theming.rb', line 25

def theme_name
  .first_paged_entry_template.theme_name
end