Class: QueryDiet::Widget
- Inherits:
-
Object
- Object
- QueryDiet::Widget
- Defined in:
- lib/query_diet/widget.rb
Class Method Summary collapse
Class Method Details
.render(response) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/query_diet/widget.rb', line 5 def render(response) body = response.body if response.content_type == "text/html" && position = body.index('</body>') body.insert(position, css) body.insert(position, html) end end |