Skip to content

Commit e7fce02

Browse files
committed
Merge pull request #129 from bmccoelho/fix-undifined-method-error
Fix undifined method error
2 parents 30ca43b + 513375e commit e7fce02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compass-rails.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def boot_config
216216
end
217217

218218
def asset_pipeline_enabled?
219-
return false unless rails_loaded?
219+
return false unless rails_loaded? && ::Rails.respond_to?(:application) && !::Rails.application.nil?
220220
rails_config = ::Rails.application.config
221221
if rails_config.respond_to?(:assets)
222222
rails_config.assets.enabled != false

0 commit comments

Comments
 (0)