Sha256: fae941228cb056ca01d6d5267e0943c764e732192fc9fd52f40986a3a593248b

Contents?: true

Size: 492 Bytes

Versions: 8

Compression:

Stored size: 492 Bytes

Contents

module Admin
  class PostmarkController < ApplicationController
    before_action(:authenticate_user!) if defined?(Devise)
    before_action { EffectiveResources.authorize!(self, :admin, :effective_postmark) }

    include Effective::CrudController

    resource_scope -> { current_user.class.all }

    on :postmark_reactivate, success: -> { "Successfully reactivated and sent an email to #{resource.email}" }

    def permitted_params
      params.require(:user).permit!
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_postmark-0.4.0 app/controllers/admin/postmark_controller.rb
effective_postmark-0.3.1 app/controllers/admin/postmark_controller.rb
effective_postmark-0.3.0 app/controllers/admin/postmark_controller.rb
effective_postmark-0.2.0 app/controllers/admin/postmark_controller.rb
effective_postmark-0.1.3 app/controllers/admin/postmark_controller.rb
effective_postmark-0.1.2 app/controllers/admin/postmark_controller.rb
effective_postmark-0.1.1 app/controllers/admin/postmark_controller.rb
effective_postmark-0.1.0 app/controllers/admin/postmark_controller.rb