Skip to content

Commit

Permalink
Merge in @metaskills patch to take it for a spin.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiannelson committed Jan 3, 2012
1 parent 0747f4f commit fc9e5a5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/less/rails/import_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ def prepare
def evaluate(context, locals, &block)
import_paths = data.scan(IMPORT_SCANNER).flatten.compact.uniq
import_paths.each do |path|
asset = context.environment[path]
if asset && asset.pathname.to_s.ends_with?('.less')
context.depend_on_asset(asset.pathname)
pathname = begin
context.resolve(path)
rescue FileNotFound
nil
end
if pathname && pathname.to_s.ends_with?('.less')
context.depend_on(path)
end
end
data
end

end
end
end

0 comments on commit fc9e5a5

Please sign in to comment.