diff --git a/app/admin/states.rb b/app/admin/states.rb index ff4edf5..2ab9104 100644 --- a/app/admin/states.rb +++ b/app/admin/states.rb @@ -15,5 +15,4 @@ ActiveAdmin.register State do # permitted << :other if params[:action] == 'create' && current_user.admin? # permitted # end - end diff --git a/app/admin/subregions.rb b/app/admin/subregions.rb index 303eb68..d03e234 100644 --- a/app/admin/subregions.rb +++ b/app/admin/subregions.rb @@ -15,5 +15,4 @@ ActiveAdmin.register Subregion do # permitted << :other if params[:action] == 'create' && current_user.admin? # permitted # end - end diff --git a/app/admin/users.rb b/app/admin/users.rb index 594f14b..54e81e3 100644 --- a/app/admin/users.rb +++ b/app/admin/users.rb @@ -15,5 +15,4 @@ ActiveAdmin.register User do # permitted << :other if params[:action] == 'create' && current_user.admin? # permitted # end - end diff --git a/app/controllers/cities_controller.rb b/app/controllers/cities_controller.rb index 47aaf36..6f616d9 100644 --- a/app/controllers/cities_controller.rb +++ b/app/controllers/cities_controller.rb @@ -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