Sha256: 1b9e0695d398971cf89bc24a6ac8ca5a7f2a87bbcb94c65a7fb0a753f046596f

Contents?: true

Size: 289 Bytes

Versions: 14

Compression:

Stored size: 289 Bytes

Contents

module RailsSitemap
  class LocationsController < ApplicationController
    before_action :set_locations

    def index
      respond_to do |format|
        format.kml
      end
    end

    private

    def set_locations
      @locations = RailsSitemap.locations ||= []
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rails_sitemap-0.5.1 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.5.0 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.4.1 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.4.0 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.3.3 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.3.2 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.3.1 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.3.0 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.2.5 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.2.4 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.2.3 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.2.2 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.2.1 app/controllers/rails_sitemap/locations_controller.rb
rails_sitemap-0.2.0 app/controllers/rails_sitemap/locations_controller.rb