Module: Surveyor::Helpers::AssetPipeline

Included in:
SurveyorHelperMethods, InstallGenerator
Defined in:
lib/surveyor/helpers/asset_pipeline.rb

Instance Method Summary collapse

Instance Method Details

#asset_pipeline_enabled?Boolean

Returns whether or not the asset pipeline is present and enabled.

The detection scheme used here was ripped from jquery-rails.

Returns:

  • (Boolean)


8
9
10
# File 'lib/surveyor/helpers/asset_pipeline.rb', line 8

def asset_pipeline_enabled?
  ::Rails.version >= "3.1" && ::Rails.application.config.assets.enabled
end