Skip to content

Commit

Permalink
[Rails] Silence a deprecation warning in Rails 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Jan 19, 2010
1 parent b0fbab5 commit 46be3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compass/app_integration/rails/installer.rb
Expand Up @@ -93,7 +93,7 @@ def initializer_contents
%Q{require 'compass'
# If you have any compass plugins, require them here.
Compass.configuration.parse(File.join(RAILS_ROOT, "config", "compass.rb"))
Compass.configuration.environment = RAILS_ENV.to_sym
Compass.configuration.environment = (defined?(Rails) ? Rails.env : RAILS_ENV).to_sym
Compass.configure_sass_plugin!
}
end
Expand Down

0 comments on commit 46be3b2

Please sign in to comment.