diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-07-05 14:34:39 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-08-25 11:39:09 +0200 |
commit | 8e3413d41098eca3806ef0bed978d71397e3b1da (patch) | |
tree | ec17d7ab63a600faf509a7e00456d4540e7df38d /actionpack/lib/action_controller/base.rb | |
parent | c90971644a90372cfa56dac8b9b2ce709a6e7267 (diff) | |
download | rails-8e3413d41098eca3806ef0bed978d71397e3b1da.tar.gz rails-8e3413d41098eca3806ef0bed978d71397e3b1da.tar.bz2 rails-8e3413d41098eca3806ef0bed978d71397e3b1da.zip |
Create AbstractController::Rendering interface
This interface should be use when implementing renderers.
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index ebb7cc2a64..82a7366f6b 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -161,7 +161,11 @@ module ActionController # render action: "overthere" # won't be called if monkeys is nil # end # - class Base < Metal + metal = Class.new(Metal) do + include AbstractController::Rendering + end + + class Base < metal abstract! # We document the request and response methods here because albeit they are |