Sha256: 55a759eaefc2514e3452ed3759469655c9debdc37d2588dc727297dcf3060925
Contents?: true
Size: 620 Bytes
Versions: 19
Compression:
Stored size: 620 Bytes
Contents
begin require 'carrierwave' rescue LoadError raise LoadError.new("Missing required 'carrierwave'. Please 'gem install carrierwave' and require it in your application.") end 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
19 entries across 19 versions & 4 rubygems