lib/jsonapionify/api/errors_object.rb in jsonapionify-0.0.1.pre vs lib/jsonapionify/api/errors_object.rb in jsonapionify-0.9.0
- old
+ new
@@ -40,10 +40,10 @@
collection << error
[runtime_block, error_block].each do |block|
evaluator.instance_exec(*args, &block) if block
end
unless ENV['RACK_ENV'] == 'production'
- error[:meta] ||= {}
+ error[:meta] ||= {}
error[:meta][:backtrace] = backtrace
end
end
def top_level