lib/sht_rails/handlebars.rb in sht_rails-0.2.1 vs lib/sht_rails/handlebars.rb in sht_rails-0.2.2

- old
+ new

@@ -7,10 +7,10 @@ def self.context(partials = nil) @context = nil unless ActionView::Resolver.caching? @context ||= begin context = ::Handlebars::Context.new if helpers = Rails.application.assets.find_asset(ShtRails.helper_path) - context.runtime.eval helpers.source + context.instance_variable_get(:@js).eval helpers.source end partials.each { |key, value| context.register_partial(key, value) } if partials context end end \ No newline at end of file