Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
Only check if Rails responds to assets.
Browse files Browse the repository at this point in the history
- Rails.application.assets can apparently be nil at boot time (Rails
  3.2.14). We still want to use asset pipeline in this case.
  • Loading branch information
ragaskar committed Aug 16, 2013
1 parent 426373d commit 5710fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jasmine/dependencies.rb
Expand Up @@ -23,7 +23,7 @@ def legacy_rack?
end

def use_asset_pipeline?
(rails3? || rails4?) && Rails.respond_to?(:application) && Rails.application.respond_to?(:assets) && Rails.application.assets
(rails3? || rails4?) && Rails.respond_to?(:application) && Rails.application.respond_to?(:assets)
end

private
Expand Down

0 comments on commit 5710fa5

Please sign in to comment.