Class: JbuilderHandler
- Inherits:
-
Object
- Object
- JbuilderHandler
- Defined in:
- lib/jbuilder/jbuilder_template.rb
Class Method Summary collapse
Class Method Details
.call(template, source = nil) ⇒ Object
284 285 286 287 288 289 |
# File 'lib/jbuilder/jbuilder_template.rb', line 284 def self.call(template, source = nil) source ||= template.source # this juggling is required to keep line numbers right in the error %{__already_defined = defined?(json); json||=JbuilderTemplate.new(self); #{source} json.target! unless (__already_defined && __already_defined != "method")} end |