Class: V2Users::RestaurantPackagesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationV2Controller
- BaseController
- V2Users::RestaurantPackagesController
- Defined in:
- app/controllers/v2_users/restaurant_packages_controller.rb
Instance Method Summary collapse
-
#menu ⇒ Object
Skip load image and hh_menu Menus if `imenupro_only` parameter is equal `true`.
Methods inherited from BaseController
#activate_cache?, #current_user_ck, default_url_options, #identity_cache_memoization, #set_csrf_token
Methods included from LogrageCustomLogger
Methods included from UpdateLocaleConcern
Methods included from ResponseCacheConcern
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 inherited from ApplicationV2Controller
Instance Method Details
#menu ⇒ Object
Skip load image and hh_menu Menus if `imenupro_only` parameter is equal `true`
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/v2_users/restaurant_packages_controller.rb', line 6 def @package = HhPackage::RestaurantPackage.fetch(params.require(:restaurant_package_id)).fetch_package if @package.blank? render plain: 'Package not found or deleted', status: :not_found return end @imenupro_only = params.fetch(:imenupro_only, 'false') == 'true' keys = [self.class, :menu, @package.id, @package.cache_key, params[:updated_at], ] my_response_cache keys, :html do render_to_string layout: nil end end |