summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/zero.rb1
-rw-r--r--lib/zero/controller.rb6
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/zero.rb b/lib/zero.rb
index d1f3d9a..22bd30c 100644
--- a/lib/zero.rb
+++ b/lib/zero.rb
@@ -2,6 +2,7 @@
if RUBY_VERSION <= '1.9'
require 'zero_fix18'
end
+
require 'class_options'
module Zero
diff --git a/lib/zero/controller.rb b/lib/zero/controller.rb
index ce2122f..f77bf44 100644
--- a/lib/zero/controller.rb
+++ b/lib/zero/controller.rb
@@ -12,13 +12,13 @@ module Zero
end
# set the class to use for responses
- options :response
+ accept_options :response
# set a class to use for requests
- options :request
+ accept_options :request
# set the renderer to use in the controller
- options :renderer
+ accept_options :renderer
# the renderer which can be used to render templates
attr_reader :renderer