lib/happy/context.rb in happy-0.1.0.pre13 vs lib/happy/context.rb in happy-0.1.0.pre14

- old
+ new

@@ -3,12 +3,12 @@ module Happy class Context include Helpers - attr_reader :request, :response, :previous_path, :remaining_path - attr_accessor :layout, :controller + attr_reader :request, :previous_path, :remaining_path + attr_accessor :layout, :controller, :response delegate :params, :session, :to => :request def initialize(request, response) @request = request @response = response @@ -26,13 +26,9 @@ # execute block yield ensure # switch back to previous controller self.controller = old_controller - end - - def response=(r) - @response = r end private class << self