Skip to content

Commit 794d13d

Browse files
JohnMoralesbrunocruzcoelho
JohnMorales
authored andcommitted
Fixing error: compass-rails.rb: undefined method 'config' for nil:NilClass
1 parent 30ca43b commit 794d13d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compass-rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def installer(*args)
7575
end
7676

7777
def rails_loaded?
78-
defined?(::Rails)
78+
defined?(::Rails) && Rails.application
7979
end
8080

8181
def rails_version

0 commit comments

Comments
 (0)