Skip to content

Commit

Permalink
Merge pull request #88 from dv/fix-import-dependencies
Browse files Browse the repository at this point in the history
Let's merge this PR. I hope it fix problem with dependencies for someone.
  • Loading branch information
maxd committed Nov 6, 2014
2 parents 1dbd3e7 + 0fb489a commit ed2dc4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/less/rails/railtie.rb
Expand Up @@ -19,7 +19,9 @@ module LessContext
end

initializer 'less-rails.before.load_config_initializers', :before => :load_config_initializers, :group => :all do |app|
(Sprockets.respond_to?('register_preprocessor') ? Sprockets : app.assets).register_preprocessor 'text/css', ImportProcessor
app.assets.register_preprocessor 'text/css', ImportProcessor
Sprockets.register_preprocessor 'text/css', ImportProcessor if Sprockets.respond_to?('register_preprocessor')

app.assets.context_class.extend(LessContext)
app.assets.context_class.less_config = app.config.less
end
Expand Down

0 comments on commit ed2dc4d

Please sign in to comment.