Skip to content

Commit

Permalink
Fixes hardcode in controller #new action
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonfb committed Dec 16, 2024
1 parent a574c75 commit 2a8e89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
hot-glue (0.6.8)
hot-glue (0.6.9)
ffaker (~> 2.16)
kaminari (~> 1.2)
rails (> 5.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/hot_glue/templates/controller.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class <%= controller_class_name %> < <%= controller_descends_from %>
@action = 'new'
rescue Pundit::NotAuthorizedError
flash[:alert] = 'You are not authorized to perform this action.'
load_all_users
load_all_<%= plural %>
render :index<% end %>
end

Expand Down

0 comments on commit 2a8e89f

Please sign in to comment.