Sha256: 714e4c26e68b0bd42fc799059fa9a7b6156bb399a59b416509ec3701773fd363
Contents?: true
Size: 464 Bytes
Versions: 25
Compression:
Stored size: 464 Bytes
Contents
require 'carrierwave' module SitemapGenerator class WaveAdapter < ::CarrierWave::Uploader::Base attr_accessor :store_dir # Call with a SitemapLocation and string data def write(location, raw_data) SitemapGenerator::FileAdapter.new.write(location, raw_data) directory = File.dirname(location.path_in_public) if directory != '.' self.store_dir = directory end store!(open(location.path, 'rb')) end end end
Version data entries
25 entries across 25 versions & 1 rubygems