Module: Rails

Defined in:
lib/cdn_sumo_sprockets_rails2/rails2/asset_pipeline.rb

Class Method Summary collapse

Class Method Details

.asset_pipelineObject



4
5
6
# File 'lib/cdn_sumo_sprockets_rails2/rails2/asset_pipeline.rb', line 4

def asset_pipeline
  @asset_pipeline ||= initialize_pipeline
end

.initialize_pipelineObject



8
9
10
11
12
13
14
# File 'lib/cdn_sumo_sprockets_rails2/rails2/asset_pipeline.rb', line 8

def initialize_pipeline
  sprockets = CdnSumoSprockets.new
  sprockets.context_class.instance_eval do
    include ActionView::Helpers
  end
  sprockets
end