Skip to content

Commit

Permalink
fix ruby 1.8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Nov 29, 2010
1 parent c8801b2 commit bdebd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/toto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def /
self[:root]
end

def go route, type = :html, env
def go route, type = :html, env = {}
route << self./ if route.empty?
type, path = type =~ /html|xml|json/ ? type.to_sym : :html, route.join('/')
context = lambda do |data, page|
Expand Down

0 comments on commit bdebd46

Please sign in to comment.