Exception: BreezyTemplate::LeafTraversalError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/breezy_template/errors.rb

Class Method Summary collapse

Class Method Details

.build(key, value, options, search_path) ⇒ Object



33
34
35
36
# 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