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