Permalink
Browse files

Make mapped_directories an array, for processing in order on ruby 1.8

  • Loading branch information...
1 parent 3689ab1 commit 98bfa61e07064bb8010e4a509cd2b3bbc97ce2f5 @candlerb candlerb committed with quirkey Feb 14, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/soca/pusher.rb
View
@@ -169,8 +169,7 @@ def make_attachment(path, data)
def mapped_directories
return @mapped_directories if @mapped_directories
- map = {}
- config['mapDirectories'].collect {|k,v| map[/^#{k}/] = v }
+ map = config['mapDirectories'].collect {|k,v| [/^#{k}/, v] }
@mapped_directories = map
end

0 comments on commit 98bfa61

Please sign in to comment.