Sha256: 1e84e501afb9ba7c7075d1ecb74a25a4a7e58f12ef74432335d97ff23cccdb17
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
module RailsSitemap class AttachmentController < ApplicationController include RailsSitemap::ActAsSitemap before_action :set_images def index respond_to do |format| format.xml end end private def set_images @image_entries = RailsSitemap.hd_images.map do |hd_image| image_path = ActionController::Base.helpers.asset_path(hd_image[:name]) ImageEntry.new(image_path, hd_image[:title], hd_image[:coordinates]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_sitemap-0.3.1 | app/controllers/rails_sitemap/attachment_controller.rb |
rails_sitemap-0.3.0 | app/controllers/rails_sitemap/attachment_controller.rb |