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



8
9
10
# File 'app/models/pageflow/theming.rb', line 8

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

#nameObject



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

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

#themeObject



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

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