Skip to content

Commit

Permalink
Merge pull request #4194 from DFE-Digital/dependabot/bundler/pundit-2…
Browse files Browse the repository at this point in the history
….3.2

Bump pundit from 2.3.1 to 2.3.2
  • Loading branch information
elceebee authored May 22, 2024
2 parents 781a383 + 6f07f36 commit 6adbc23
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ GEM
public_suffix (5.0.5)
puma (6.4.2)
nio4r (~> 2.0)
pundit (2.3.1)
pundit (2.3.2)
activesupport (>= 3.0.0)
raabro (1.4.0)
racc (1.8.0)
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/publish/providers/schools_check_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Publish
module Providers
class SchoolsCheckController < PublishController
before_action :pundit
before_action :authorise_with_pundit
before_action :new_form

def show; end
Expand All @@ -19,7 +19,7 @@ def update

private

def pundit
def authorise_with_pundit
authorize provider, :show?
end

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/publish/providers/schools_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Publish
module Providers
class SchoolsController < PublishController
before_action :pundit
before_action :authorise_with_pundit
before_action :site, only: %i[show delete]

def index
Expand Down Expand Up @@ -56,7 +56,7 @@ def destroy

private

def pundit
def authorise_with_pundit
authorize provider, :show?
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Publish
module Providers
class StudySitesCheckController < PublishController
before_action :pundit
before_action :authorise_with_pundit
before_action :new_form

def show; end
Expand All @@ -19,7 +19,7 @@ def update

private

def pundit
def authorise_with_pundit
authorize provider, :show?
end

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/publish/providers/study_sites_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Publish
module Providers
class StudySitesController < PublishController
before_action :pundit
before_action :authorise_with_pundit
before_action :site, only: %i[show delete]
before_action :build_study_site, only: %i[new create]

Expand Down Expand Up @@ -55,7 +55,7 @@ def destroy

private

def pundit
def authorise_with_pundit
authorize provider, :show?
end

Expand Down

0 comments on commit 6adbc23

Please sign in to comment.