lib/happy/context.rb in happy-0.1.0.pre9 vs lib/happy/context.rb in happy-0.1.0.pre10
- old
+ new
@@ -3,17 +3,18 @@
module Happy
class Context
include Helpers
- attr_reader :request, :response, :remaining_path
+ attr_reader :request, :response, :previous_path, :remaining_path
attr_accessor :layout, :controller
delegate :params, :session, :to => :request
def initialize(request, response)
@request = request
@response = response
@remaining_path = @request.path.split('/').reject {|s| s.blank? }
+ @previous_path = []
@layout = nil
@controller = nil
end
def with_controller(new_controller)