module Condenser::Rails::Context
Public Class Methods
included(klass)
click to toggle source
# File lib/condenser/rails/context.rb, line 11 def self.included(klass) klass.class_eval do class_attribute :config, :assets_prefix end end
Public Instance Methods
compute_asset_path(path, options = {})
click to toggle source
Calls superclass method
# File lib/condenser/rails/context.rb, line 17 def compute_asset_path(path, options = {}) if asset = environment.find(path) @dependencies << asset.source_file File.join(assets_prefix || "/", asset.path) else super end end