Skip to content

Commit

Permalink
Only add compass configuration in the railtie.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig McNamara committed Jan 6, 2015
1 parent e84ee88 commit bc89f9c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/compass-rails.rb
Expand Up @@ -107,21 +107,6 @@ def configure_rails!(app)
end
end

def boot_config
config = begin
if (config_file = Compass.detect_configuration_file) &&
(config_data = Compass.configuration_for(config_file))
config_data
else
Compass::Configuration::Data.new("compass_rails_boot")
end
end

config.tap do |c|
c.top_level.project_type = :rails
end
end

private

# sets the sass config value only if the corresponding compass-based setting
Expand All @@ -136,8 +121,6 @@ def set_maybe(sass_config, compass_config, sass_option, compass_option)

if defined?(::Rails)
Compass::AppIntegration.register(:rails, "::CompassRails")
Compass.add_configuration(CompassRails.boot_config)

require "compass-rails/patches"
require "compass-rails/railties"
end
Expand Down

0 comments on commit bc89f9c

Please sign in to comment.