Class: Jbuilder::Schema::Template::Handler

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

Class Method Summary collapse

Class Method Details

.call(template, source = nil) ⇒ Object



10
11
12
# File 'lib/jbuilder/schema/template.rb', line 10

def self.call(template, source = nil)
  super.sub("JbuilderTemplate.new(self", "Jbuilder::Schema::Template.build(self, local_assigns")
end