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

Version Path
effective_email_templates-1.9.0 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.8.0 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.7.0 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.6.0 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.5.1 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.5.0 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.4.1 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.4.0 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.3.0 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.2.3 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.2.2 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.2.1 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.2.0 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.1.4 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.1.3 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.1.2 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.1.1 app/controllers/admin/email_templates_controller.rb
effective_email_templates-1.1.0 app/controllers/admin/email_templates_controller.rb