Sha256: af586bafa68312c955a68fa2700f6f3167a775f45a1fd6e4367e6d8dcb23fa98
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
class Admin::UsersController < Admin::BaseController load_and_authorize_resource def activate resource.confirm! unless resource.confirmed? resource.unsuspend! redirect_to :back end def suspend resource.suspend! redirect_to :back end private def resource_action_items [:edit, :destroy, :show, :preview, :activate, :suspend] end def build_resource super resource.skip_confirmation! resource end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ab_admin-0.1.2 | app/controllers/admin/users_controller.rb |
ab_admin-0.1.1 | app/controllers/admin/users_controller.rb |
ab_admin-0.1.0 | app/controllers/admin/users_controller.rb |