Class: Pageflow::Theming

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/pageflow/theming.rb

Instance Method Summary collapse

Instance Method Details

#cname_domainObject


14
15
16
# File 'app/models/pageflow/theming.rb', line 14

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

#nameObject


22
23
24
# File 'app/models/pageflow/theming.rb', line 22

def name
  I18n.t('admin.themings.name', :account_name => .name, :theme_name => theme_name)
end

#themeObject


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

def theme
  Pageflow.config.themes.get(theme_name)
end