Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #55 from petejohanson/resource_creation_refactor

Make the Dispatcher#resource_creator an attr_accessor, so it can be deco...
  • Loading branch information...
commit 49fadb1e2898ff7feed9f6bbefd325f303cbeb1c 2 parents ab701ad + 8a1a701
@seancribbs authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/webmachine/dispatcher.rb
View
6 lib/webmachine/dispatcher.rb
@@ -11,10 +11,10 @@ class Dispatcher
# @see #add_route
attr_reader :routes
- # Set the creator for resource used to process requests.
- # Must respond to call(request, response) and return
+ # The creator for resources used to process requests.
+ # Must respond to call(route, request, response) and return
# a newly created resource instance.
- attr_writer :resource_creator
+ attr_accessor :resource_creator
# Initialize a Dispatcher instance
# @param resource_creator Invoked to create resource instances.
Please sign in to comment.
Something went wrong with that request. Please try again.