Skip to content

Commit

Permalink
Update controller_resource.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Sep 28, 2024
1 parent 4d25d72 commit 3be6be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cancan/controller_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.before_callback_name(options)

def initialize(controller, *args)
@controller = controller
@params = controller.params
@params = controller.params.to_unsafe_h
@options = args.extract_options!
@name = args.first
end
Expand Down

0 comments on commit 3be6be6

Please sign in to comment.