lib/happy.rb in happy-0.1.0.pre16 vs lib/happy.rb in happy-0.1.0.pre19
- old
+ new
@@ -1,16 +1,12 @@
require 'rack'
require 'happy/version'
+require 'happy/errors'
require 'happy/context'
require 'happy/controller'
module Happy
- module Errors
- class Base < StandardError ; end
- class NotFound < Base ; end
- end
-
def self.env
ActiveSupport::StringInquirer.new(ENV['RACK_ENV'] || 'development')
end
# Creates a new Happy::Controller class, using the provided block as
@@ -31,5 +27,8 @@
def self.call(env)
@last_controller_class_created.try(:call, env) or raise "Please use Happy.route to define some routes."
end
end
+
+__END__
+yooooooo!