Sha256: 56bfc62ed2789637a08257f4106bf90e8f048aec616c0803c34e849e5cbb0606
Contents?: true
Size: 585 Bytes
Versions: 20
Compression:
Stored size: 585 Bytes
Contents
class FestivityLocationsController < ApplicationController include Concerns::FestivityCustomPage before_action { expires_in 1.hour, :public => true } def show @location = FestivityLocationPage.find_by_slug_for_site(params[:id]).first if @location @location_events = @title = Rails.cache.fetch("location-#{@location.slug}", expires_in: 2.hours) do FestivityEventList.find_by_location(@location.id, current_site) end @title = "#{current_site.festivity_festival_name}: #{@location.title}" else file_not_found_for_site end end end
Version data entries
20 entries across 20 versions & 1 rubygems