lib/usher/interface/rails2_interface/mapper.rb in joshbuddy-usher-0.3.6 vs lib/usher/interface/rails2_interface/mapper.rb in joshbuddy-usher-0.4.0
- old
+ new
@@ -5,11 +5,11 @@
class Mapper #:doc:
def initialize(set) #:nodoc:
@set = set
end
- def connect(path, options = {})
+ def connect(path, options = nil)
@set.add_route(path, options)
end
def root(options = {})
if options.is_a?(Symbol)
@@ -19,10 +19,10 @@
end
end
named_route(:root, '/', options)
end
- def named_route(name, path, options = {})
+ def named_route(name, path, options = nil)
@set.add_named_route(name, path, options)
end
def namespace(name, options = {}, &block)
if options[:namespace]
\ No newline at end of file