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

Version Path
trusty-festivity-extension-2.4.6 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.4.5 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.4.4 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.4.3 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.4.2 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.4.1 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.4.0 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.30 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.29 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.28 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.27 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.26 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.25 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.24 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.23 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.22 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.21 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.20 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.19 app/controllers/festivity_locations_controller.rb
trusty-festivity-extension-2.3.18 app/controllers/festivity_locations_controller.rb