Permalink
Browse files

Fixing the asset pipeline detection code under rails 3.0

  • Loading branch information...
1 parent 953d17d commit de25e67f3dd1ebcb235b46bdfcf86e3b09c4d33f Matthew Kocher & Roger Neel committed Jan 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jasmine/dependencies.rb
@@ -15,7 +15,7 @@ def rails3?
end
def rails_3_asset_pipeline?
- rails3? && Rails.respond_to?(:application) && Rails.application.assets
+ rails3? && Rails.respond_to?(:application) && Rails.application.respond_to?(:assets) && Rails.application.assets
end
private

0 comments on commit de25e67

Please sign in to comment.