Sha256: 1209d9f07c839e214f5f5e3e2402b5f63005c1e521799535c949f83856d99447
Contents?: true
Size: 754 Bytes
Versions: 62
Compression:
Stored size: 754 Bytes
Contents
module Workarea class Admin::ContentEmailsController < Admin::ApplicationController required_permissions :marketing before_action :find_email, except: :index def index @emails = Content::Email.all end def edit; end def update if @email.update_attributes(email_params) flash[:success]= t( 'workarea.admin.content_emails.flash_messages.updated', type: @email.type.titleize ) redirect_to content_emails_path else render :edit end end private def find_email @email = Content::Email.find(params[:id]) end def email_params return {} unless params[:email].present? params[:email].permit(:content) end end end
Version data entries
62 entries across 62 versions & 1 rubygems