Class: ActionView::Template::Handler
- Inherits:
-
Object
- Object
- ActionView::Template::Handler
- Defined in:
- lib/action_view/template/handler.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(template) ⇒ Object
37 38 39 |
# File 'lib/action_view/template/handler.rb', line 37 def self.call(template) raise "Need to implement #{self.class.name}#call(template)" end |
.inherited(base) ⇒ Object
31 32 33 34 35 |
# File 'lib/action_view/template/handler.rb', line 31 def self.inherited(base) ActiveSupport::Deprecation.warn "Inheriting from ActionView::Template::Handler is deprecated. " << "Since Rails 3, all the API your template handler needs to implement is to respond to #call." super end |
Instance Method Details
#render(template, local_assigns) ⇒ Object
41 42 43 |
# File 'lib/action_view/template/handler.rb', line 41 def render(template, local_assigns) raise "Need to implement #{self.class.name}#render(template, local_assigns)" end |