Skip to content

Commit

Permalink
Update formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Oct 23, 2024
1 parent c7d897c commit ace3dcb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ gem "simplecov"
gem "yard"
gem "standard"
gem "actionpack", ">= 3.0.0"
gem "reissue"
gem "reissue"
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ require "reissue/gem"

Reissue::Task.create do |task|
task.version_file = "lib/pundit/plus/version.rb"
end
end
5 changes: 3 additions & 2 deletions spec/pundit/custom_exception_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ class UserPolicy

class CustomError < Pundit::NotAuthorizedError
def initialize(options = {})
options[:message] ||= "Custom exception from policy"
super(options)
options_with_message = options.dup
options_with_message[:message] ||= "Custom exception from policy"
super(options_with_message)
end
end

Expand Down

0 comments on commit ace3dcb

Please sign in to comment.