lib/handlebars_assets/config.rb in handlebars_assets-0.6.4 vs lib/handlebars_assets/config.rb in handlebars_assets-0.6.5

- old
+ new

@@ -3,11 +3,11 @@ # # HandlebarsAssets::Config.path_prefix = 'app/templates' module Config extend self - attr_writer :compiler, :compiler_path, :known_helpers, :known_helpers_only, :path_prefix, :template_namespace + attr_writer :compiler, :compiler_path, :known_helpers, :known_helpers_only, :options, :path_prefix, :template_namespace def compiler @compiler || 'handlebars.js' end @@ -42,10 +42,10 @@ hash[helper] = true end end def generate_options - options = {} + options = @options || {} options[:knownHelpersOnly] = true if known_helpers_only options[:knownHelpers] = generate_known_helpers_hash if known_helpers.any? options end