Sha256: ada2d1bc582d1f79903212cf043d187f50573e3697dc1054b1895baad6d281e1
Contents?: true
Size: 435 Bytes
Versions: 9
Compression:
Stored size: 435 Bytes
Contents
class Guide::Photographer def initialize(image_name, extension = 'png') @image_name = image_name @extension = extension end def image_path "#{asset_host}#{image_with_path_and_digest}" end private def image_with_path_and_digest ActionController::Base.helpers.image_path "guide/#{@image_name}.#{@extension}" end def asset_host Rails.application.config.action_controller.asset_host || "" end end
Version data entries
9 entries across 9 versions & 1 rubygems