Sha256: 4e7148b10151e792cd41998f4197f659163ddc6a42a3ecfbc8f20ad8fb6c49b9
Contents?: true
Size: 567 Bytes
Versions: 18
Compression:
Stored size: 567 Bytes
Contents
module Admin class EmailTemplatesController < ApplicationController before_action(:authenticate_user!) if defined?(Devise) before_action { EffectiveResources.authorize!(self, :admin, :effective_email_templates) } include Effective::CrudController if (config = EffectiveEmailTemplates.layout) layout(config.kind_of?(Hash) ? config[:admin] : config) end submit :save, 'Save' submit :save, 'Save and Add New', redirect: :new def email_template_params params.require(:effective_email_template).permit! end end end
Version data entries
18 entries across 18 versions & 1 rubygems