Sha256: 7cc2e8cef61bbb22ee1e6eb028f10300e26d7e0a3dd3a1971ef28f6e82f148dd
Contents?: true
Size: 557 Bytes
Versions: 58
Compression:
Stored size: 557 Bytes
Contents
class FestivityLocationsController < ApplicationController include Festivity::Mixins::NotFound no_login_required trusty_layout "base" 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) end @title = "#{current_site.festivity_festival_name}: #{@location.title}" else file_not_found_for_site end end end
Version data entries
58 entries across 58 versions & 1 rubygems