Sha256: ef5e310ac9bbf1d4900b413cf573d6b36a9e6ba1a7715939a4b8d1235acacf29
Contents?: true
Size: 445 Bytes
Versions: 76
Compression:
Stored size: 445 Bytes
Contents
module Cul::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
76 entries across 76 versions & 2 rubygems