Sha256: 9b5dae9ab0f4edfdb3852ca4c6d5a64ccbd7d39b181caf2ff4ad66c92a75d41e

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 Bytes

Contents

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

    include Effective::CrudController

    resource_scope -> { Effective::MentorshipGroupUser.deep.all }

    private

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

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
effective_mentorships-0.3.4 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.3.3 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.3.2 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.3.1 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.3.0 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.2.4 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.2.3 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.2.2 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.2.1 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.2.0 app/controllers/admin/mentorship_group_users_controller.rb
effective_mentorships-0.1.0 app/controllers/admin/mentorship_group_users_controller.rb