Sha256: e0d185de00f5d27ff66927dcf7fd2386d1fe8fd0181d4857599f2365ca16c095
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
class Admin::Disguise::ThemesController < ApplicationController unloadable before_filter :get_theme def edit @current_theme, @themes = Theme.available_themes(@theme) @domain_themes = {} DomainTheme.all.each{|d| @domain_themes[d.name] = d} if @themes.empty? respond_to do |format| format.html { render :template => 'admin/themes/no_themes' } end else respond_to do |format| format.html { render :template => 'admin/themes/edit' } end end end def update @theme.update_attributes!(params[:theme]) respond_to do |format| flash[:notice] = t('disguise.theme_updated') format.html { redirect_to edit_admin_theme_path } end end private def get_theme @theme = Theme.first || Theme.create end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
disguise-0.2.0 | app/controllers/admin/disguise/themes_controller.rb |