diff options
author | Gibheer <gibheer@gmail.com> | 2013-01-28 15:49:53 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2013-01-28 15:49:53 +0100 |
commit | b317b05f90865e1e32d0bf3516cef58c54a2fc9b (patch) | |
tree | 82e07457bc9cd44157434b2056f392373674a85e /lib | |
parent | 001f9ebf772e2233e69055c66c405f9213dcd2c7 (diff) |
use new api of class_options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zero.rb | 1 | ||||
-rw-r--r-- | lib/zero/controller.rb | 6 |
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 |