Sha256: 7dff8dc4902cbcef996a0e82a9daf58d02f31c98884f9fe298ea0956c549d14d
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
class Admin::Disguise::DomainThemesController < ApplicationController unloadable def create @domain_theme = DomainTheme.create(params[:domain_theme]) respond_to do |format| flash[:notice] = t('disguise.theme_updated') format.html { redirect_to edit_admin_theme_path } end end def update @domain_theme = DomainTheme.find_by_name(params[:domain_theme][:name]) @domain_theme.update_attributes!(params[:domain_theme]) respond_to do |format| flash[:notice] = t('disguise.theme_updated') format.html { redirect_to edit_admin_theme_path } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
disguise-0.2.0 | app/controllers/admin/disguise/domain_themes_controller.rb |