fix: remove trailing whitespace in admin files
- Clean up trailing whitespace in app/admin/state.rb - Clean up trailing whitespace in app/admin/subregions.rb - Clean up trailing whitespace in app/admin/users.rb - Adjust formatting in cities_controller.rb for consistency These changes improve code readability and maintainability by removing unnecessary whitespace. It is a small clean-up that prepares files for better version control parsing and reduces the diff clutter.
This commit is contained in:
parent
8d347f6f01
commit
6f21fe001e
@ -15,5 +15,4 @@ ActiveAdmin.register State do
|
||||
# permitted << :other if params[:action] == 'create' && current_user.admin?
|
||||
# permitted
|
||||
# end
|
||||
|
||||
end
|
||||
|
@ -15,5 +15,4 @@ ActiveAdmin.register Subregion do
|
||||
# permitted << :other if params[:action] == 'create' && current_user.admin?
|
||||
# permitted
|
||||
# end
|
||||
|
||||
end
|
||||
|
@ -15,5 +15,4 @@ ActiveAdmin.register User do
|
||||
# permitted << :other if params[:action] == 'create' && current_user.admin?
|
||||
# permitted
|
||||
# end
|
||||
|
||||
end
|
||||
|
@ -1,6 +1,6 @@
|
||||
class CitiesController < ApplicationController
|
||||
before_action :authenticate_user!, only: [:generate_weather_art]
|
||||
before_action :require_admin, only: [:generate_weather_art]
|
||||
before_action :authenticate_user!, only: [ :generate_weather_art ]
|
||||
before_action :require_admin, only: [ :generate_weather_art ]
|
||||
|
||||
def index
|
||||
@regions = Region.includes(:countries).order(:name)
|
||||
@ -63,5 +63,4 @@ class CitiesController < ApplicationController
|
||||
redirect_to root_path
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user