Class: Pageflow::Theming
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Pageflow::Theming
- Defined in:
- app/models/pageflow/theming.rb
Instance Method Summary collapse
- #cname_domain ⇒ Object
- #name ⇒ Object
-
#theme_name ⇒ Object
deprecated
Deprecated.
Depending on what you need this for, consider
Instance Method Details
#cname_domain ⇒ Object
12 13 14 |
# File 'app/models/pageflow/theming.rb', line 12 def cname_domain cname.split('.').pop(2).join('.') end |
#name ⇒ Object
16 17 18 19 20 |
# File 'app/models/pageflow/theming.rb', line 16 def name I18n.t('pageflow.admin.themings.name', account_name: account.name, theme_name: 'default') end |
#theme_name ⇒ Object
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 account.first_paged_entry_template.theme_name end |