class BreezyTemplate::LeafTraversalError

Public Class Methods

build(key, value, options, search_path) click to toggle source
# File lib/breezy_template/errors.rb, line 33
def self.build(key, value, options, search_path)
  message = "Attempted to traverse into node named #{key} but got a value. This may happen if you forgot to use nil as a first value if you're using a partial, e.g, json.foo nil, partial: 'footer'. Key: #{key} Value: #{value} Options: #{options} Remaining search path: #{search_path}."
  new(message)
end