diff --git a/init.rb b/init.rb index 6dbfa4c..229d512 100644 --- a/init.rb +++ b/init.rb @@ -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' + diff --git a/lib/less/more.rb b/lib/less/more.rb index 6552ba1..3e3e03f 100644 --- a/lib/less/more.rb +++ b/lib/less/more.rb @@ -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) diff --git a/rails/init.rb b/rails/init.rb deleted file mode 100644 index 17ff689..0000000 --- a/rails/init.rb +++ /dev/null @@ -1 +0,0 @@ -require File.join(File.dirname(__FILE__), '..', 'lib', 'less', 'controller_extension') if RAILS_ENV == 'development' \ No newline at end of file diff --git a/test/test_helper.rb b/test/test_helper.rb index f705639..3b950e7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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')