lib/less/rails.rb in less-rails-2.1.7 vs lib/less/rails.rb in less-rails-2.1.8
- old
+ new
@@ -5,10 +5,14 @@
require 'less'
require 'rails'
require 'tilt'
require 'sprockets'
-require 'sprockets/railtie'
+begin
+ require 'sprockets/railtie'
+rescue LoadError
+ require 'sprockets/rails/railtie'
+end
require 'less/rails/version'
require 'less/rails/helpers'
require 'less/rails/template_handlers'
require 'less/rails/import_processor'