Module: Rad::Controller::Http
- Includes:
- ForgeryProtector
- Defined in:
- lib/rad/controller/_http.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary
Attributes included from ForgeryProtector
Instance Method Summary collapse
Instance Method Details
#render(*args) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/rad/controller/_http.rb', line 7 def render *args if args.size == 1 and (status = Rad::Http::Response.(args.first)) response.set! status: status throw :halt, "" else super end end |