Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Feb 10, 2010
2 parents 9ef2c9b + 5ca3a94 commit 3b8d064
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/more.rb → lib/less/more.rb
Expand Up @@ -109,7 +109,7 @@ def exists?(path_as_array)
end

def cache_path
File.join(RAILS_ROOT, 'tmp', 'less-cache')
File.join(Rails.root, 'tmp', 'less-cache')
end

# Generates the .css from a .less or .lss file in Less::More.source_path matching
Expand Down
1 change: 0 additions & 1 deletion rails/init.rb
@@ -1,2 +1 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'more')
require File.join(File.dirname(__FILE__), '..', 'lib', 'controller_extension') if RAILS_ENV == 'development'
3 changes: 0 additions & 3 deletions tasks/more_tasks.rake
@@ -1,6 +1,3 @@
require 'less'
require File.join(File.dirname(__FILE__), '..', 'lib', 'more')

namespace :more do
desc "Generate CSS files from LESS files"
task :parse => :environment do
Expand Down
4 changes: 1 addition & 3 deletions test/test_helper.rb
Expand Up @@ -33,6 +33,4 @@ class ApplicationController < ActionController::Base
raise e
end

RAILS_ROOT = Rails.root

require 'more'
require 'less/more'

0 comments on commit 3b8d064

Please sign in to comment.