remove more leftovers from class_options
This commit is contained in:
parent
eeb0169bc9
commit
27442f4061
|
@ -2,13 +2,11 @@ PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
zero (0.2.0)
|
zero (0.2.0)
|
||||||
class_options
|
|
||||||
tilt
|
tilt
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
class_options (0.0.1)
|
|
||||||
coderay (1.0.8)
|
coderay (1.0.8)
|
||||||
devutils (0.0.1)
|
devutils (0.0.1)
|
||||||
rspec
|
rspec
|
||||||
|
|
|
@ -3,8 +3,6 @@ if RUBY_VERSION <= '1.9'
|
||||||
require 'zero_fix18'
|
require 'zero_fix18'
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'class_options'
|
|
||||||
|
|
||||||
module Zero
|
module Zero
|
||||||
require 'zero/controller'
|
require 'zero/controller'
|
||||||
require 'zero/router'
|
require 'zero/router'
|
||||||
|
|
|
@ -5,7 +5,6 @@ module Zero
|
||||||
# rack compatible controllers. It catches #call and creates a new instance
|
# rack compatible controllers. It catches #call and creates a new instance
|
||||||
# with the environment and calls #render on it.
|
# with the environment and calls #render on it.
|
||||||
class Controller
|
class Controller
|
||||||
extend ClassOptions::Options
|
|
||||||
# initialize a new instance of the controller and call response on it
|
# initialize a new instance of the controller and call response on it
|
||||||
def self.call(env)
|
def self.call(env)
|
||||||
new(env).response
|
new(env).response
|
||||||
|
|
Loading…
Reference in New Issue