aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/new_base/renderer.rb
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-03-17 18:04:22 -0700
committerYehuda Katz <wycats@gmail.com>2009-03-17 18:04:22 -0700
commitf55514125cae291791365effc856d237008f7cd2 (patch)
tree6080509ce323a5880b8b7552efc5d8f76afaade3 /actionpack/lib/action_controller/new_base/renderer.rb
parenta2637e9f1fba92bc0b8dbf461ce9f4f8ffb4cfaa (diff)
downloadrails-f55514125cae291791365effc856d237008f7cd2.tar.gz
rails-f55514125cae291791365effc856d237008f7cd2.tar.bz2
rails-f55514125cae291791365effc856d237008f7cd2.zip
Working toward getting a basic AbstractController framework
Diffstat (limited to 'actionpack/lib/action_controller/new_base/renderer.rb')
-rw-r--r--actionpack/lib/action_controller/new_base/renderer.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/new_base/renderer.rb b/actionpack/lib/action_controller/new_base/renderer.rb
new file mode 100644
index 0000000000..503450c246
--- /dev/null
+++ b/actionpack/lib/action_controller/new_base/renderer.rb
@@ -0,0 +1,11 @@
+module ActionController
+ module Renderer
+
+ def render(options)
+ if text = options[:text]
+ self.response_body = text
+ end
+ end
+
+ end
+end \ No newline at end of file