Skip to content

Commit

Permalink
fix route_names issue by using Mash (indifferent access to keys)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaven committed Jul 6, 2010
1 parent 991e247 commit 0ac158e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cilantro/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require CILANTRO_ROOT/'lib'/'cilantro'/'system'/'mysql_fix' if File.exists?(CILANTRO_ROOT/'lib'/'cilantro'/'system'/'mysql_fix')
require CILANTRO_ROOT/'lib'/'cilantro'/'system'/'mysql_fix'

module Cilantro
class << self
Expand Down Expand Up @@ -263,8 +263,9 @@ def namespaces
@namespaces ||= {}
end
def route_names
@route_names ||= {}
@route_names ||= Mash.new
end

def namespaced_filters
@namespaced_filters ||= []
end
Expand Down

0 comments on commit 0ac158e

Please sign in to comment.