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



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

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

#nameObject



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

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

#themeObject



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

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