mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
This reverts commit 42d215a925.
Conflicts:
actionpack/lib/action_view/inline_template.rb
actionpack/lib/action_view/template.rb
17 lines
359 B
Ruby
17 lines
359 B
Ruby
module ActionView #:nodoc:
|
|
class InlineTemplate #:nodoc:
|
|
include Renderer
|
|
|
|
def initialize(view, source, locals = {}, type = nil)
|
|
@view = view
|
|
|
|
@source = source
|
|
@extension = type
|
|
@locals = locals || {}
|
|
|
|
@method_key = @source
|
|
@handler = Template.handler_class_for_extension(@extension).new(@view)
|
|
end
|
|
end
|
|
end
|