Class: Admin::ArchivedUsersController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- Admin::ArchivedUsersController
- Defined in:
- app/controllers/admin/archived_users_controller.rb
Constant Summary
Constants inherited from BaseController
BaseController::INTERNAL_SERVER_ERROR_MESSAGE
Instance Method Summary collapse
Methods inherited from BaseController
#destroy_session, #identity_cache_memoization, #sign_in_page, #user_developer_session
Methods included from LogrageCustomLogger
Methods included from AdminHelper
#dynamic_pricings_formatter, #link_to_admin_reservations_path_by_id, #link_to_admin_restaurants_path_by_id, #link_to_log, #optional_locales, #optional_locales_with_labels, #staff_signed_in?
Methods included from UpdateLocaleConcern
Methods inherited from ApplicationController
#after_sign_in_path_for, #after_sign_out_path_for, #default_url_options, #identity_cache_memoization, #render_not_found, #routing_error, search_params_key=
Methods included from ControllerHelpers
#check_boolean_param, #get_banners, #inventory_params, #reservation_params
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 |
# File 'app/controllers/admin/archived_users_controller.rb', line 4 def index @grid = ::Admin::ArchivedUsersGrid.new(params[:admin_archived_users_grid]) do |scope| scope.page(params[:page]).per(50) end fresh_when @grid.assets.cache_key end |
#validate_users ⇒ Object
11 12 13 14 15 16 |
# File 'app/controllers/admin/archived_users_controller.rb', line 11 def validate_users return unless user_signed_in? unless current_user.email == 'saiqulhaq@hungryhub.com' || current_user.email == 'kamolporn@hungryhub.com' raise ActiveRecord::RecordNotFound end end |