Class: Jbuilder::KeyFormatter
- Inherits:
-
Object
- Object
- Jbuilder::KeyFormatter
- 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_format ⇒ Object
352 |
# File 'lib/jbuilder/schema/template.rb', line 352 alias_method :original_format, :format |