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

Version Path
trusty-festivity-extension-2.6.3 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.6.2 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.6.1 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.6 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.19 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.18 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.17 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.16 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.15 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.14 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.13 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.12 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.11 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.10 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.9 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.8 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.7 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.6 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.5 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.5.4 app/controllers/festivity_locations_controller.rb