Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use camelize rather than classify when supplying a namespace #2117

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module <%= namespace.to_s.classify %>
class <%= class_name.pluralize %>Controller < <%= namespace.to_s.classify %>::ApplicationController
module <%= namespace.to_s.camelize %>
class <%= class_name.pluralize %>Controller < <%= namespace.to_s.camelize %>::ApplicationController
# Overwrite any of the RESTful controller actions to implement custom behavior
# For example, you may want to send an email after a foo is updated.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# If you want to add pagination or other controller-level concerns,
# you're free to overwrite the RESTful controller actions.
module <%= namespace.classify %>
module <%= namespace.camelize %>
class ApplicationController < Administrate::ApplicationController
before_action :authenticate_admin

Expand Down