Sha256: 730e5fd76a3b844c0228e0c7bd1628116d90e0020e10ad1d5b2009c6c48d83fc
Contents?: true
Size: 450 Bytes
Versions: 49
Compression:
Stored size: 450 Bytes
Contents
module Cul::Scv::Hydra::Controller def asset_path_from_config(asset) Rails.configuration.assets.paths.each do |dir| result = "#{dir}/#{asset}" return result if File.exists?(result) end return nil end def asset_url(source) URI.join(root_url, ActionController::Base.helpers.asset_path(source)) end def http_client unless @http_client @http_client ||= HTTPClient.new end @http_client end end
Version data entries
49 entries across 49 versions & 1 rubygems