Exception: Jbuilder::MergeError

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

Class Method Summary collapse

Class Method Details

.build(current_value, updates) ⇒ Object



19
20
21
22
# File 'lib/jbuilder/errors.rb', line 19

def self.build(current_value, updates)
  message = "Can't merge #{updates.inspect} into #{current_value.inspect}"
  new(message)
end