seancribbs/webmachine-ruby — pull request #55 by petejohanson (2012-06-19 13:19:35+00:00)
Title: Make the Dispatcher#resource_creator an attr_accessor, so it can be deco...

...rated/wrapped.

One more minor change, that will let folks do something like:

app = Webmachine::Application.new do |a|
orig_creator = a.dispatcher.resource_creator
a.dispatcher.resource_creator = lambda { |resource, req, resp|
orig_creator.call (resource, req, resp).tap { |r| r.application = a }
}
end

to decorate/wrap the original creator with additional functionality.