Module: Surveyor::Helpers::AssetPipeline
- Included in:
- SurveyorHelperMethods, InstallGenerator
- Defined in:
- lib/surveyor/helpers/asset_pipeline.rb
Instance Method Summary collapse
-
#asset_pipeline_enabled? ⇒ Boolean
Returns whether or not the asset pipeline is present and enabled.
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.
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 |