Fixes to Rails 3 deprecation warnings #31

Open
wants to merge 3 commits into
from
View
@@ -1 +1,2 @@
-require File.join(File.dirname(__FILE__), 'rails', 'init')
+require File.join(File.dirname(__FILE__), 'lib', 'less', 'controller_extension') if Rails.env == 'development'
+
View
@@ -15,7 +15,7 @@
end
class Less::More
- HEADER = %{/*\n\n\n\n\n\tThis file was auto generated by Less (http://lesscss.org). To change the contents of this file, edit %s instead.\n\n\n\n\n*/}
+ HEADER = %{/*\n\n\n\n\n\tThis file was auto generated by Less (http://lesscss.org). To change the contents of this file, edit %s instead.\n\n\n\n\n*/\n}
class << self
# Less::More.compression = true/false --- compress generated css ? (default: false)
View
@@ -1 +0,0 @@
-require File.join(File.dirname(__FILE__), '..', 'lib', 'less', 'controller_extension') if RAILS_ENV == 'development'
View
@@ -12,9 +12,13 @@ def self.root
def self.backtrace_cleaner
ActiveSupport::BacktraceCleaner.new
end
+
+ def self.env
+ 'development'
+ end
end
-RAILS_ENV = 'development'
+#RAILS_ENV = 'development'
# load plugin
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')