Class: Jbuilder::KeyFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/jbuilder/schema/template.rb

Overview

Monkey-patch for Jbuilder::KeyFormatter to ignore schema keys

Instance Method Summary collapse

Instance Method Details

#format(key) ⇒ Object



354
355
356
357
358
# File 'lib/jbuilder/schema/template.rb', line 354

def format(key)
  return key if %i[type items properties].include?(key)

  original_format(key)
end

#original_formatObject



352
# File 'lib/jbuilder/schema/template.rb', line 352

alias_method :original_format, :format