lib/less/rails/template_handlers.rb in less-rails-2.7.1 vs lib/less/rails/template_handlers.rb in less-rails-2.8.0

- old
+ new

@@ -24,18 +24,22 @@ def config_to_less_parser_options(scope) paths = config_paths(scope) + scope.environment.paths local_path = scope.pathname.dirname paths += [local_path] unless paths.include? local_path - {:filename => eval_file, :line => line, :paths => paths, :dumpLineNumbers => config_from_rails(scope).line_numbers} + {:filename => eval_file, :line => line, :paths => paths, :dumpLineNumbers => config_from_rails(scope).line_numbers}.merge(config_raw(scope)) end def config_to_css_options(scope) Hash[config_from_rails(scope).each.to_a].slice *TO_CSS_KEYS end def config_paths(scope) config_from_rails(scope)[:paths] + end + + def config_raw(scope) + config_from_rails(scope)[:raw] end def config_from_rails(scope) scope.environment.context_class.less_config end