Class: Lotus::Views::Default Private
- Inherits:
-
Object
- Object
- Lotus::Views::Default
- Includes:
- Lotus::View
- Defined in:
- lib/lotus/views/default.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The default view that is rendered for non successful responses (200 and 201)
Class Method Summary collapse
Instance Method Summary collapse
- #title ⇒ Object private
Class Method Details
.render(root, template_name, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/lotus/views/default.rb', line 22 def self.render(root, template_name, context) format = context[:format] template = DefaultTemplateFinder.new(self, root, template_name, format).find if template new(template, context).render else super(context) end end |
Instance Method Details
#title ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/lotus/views/default.rb', line 18 def title response[2].first end |