Sha256: bcab7bbfa3917c92479cb75d1b240fc7f51016adf3e769205d18255b6c94a568

Contents?: true

Size: 439 Bytes

Versions: 12

Compression:

Stored size: 439 Bytes

Contents

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

    include Effective::CrudController

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

    private

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

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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