Permalink
Browse files

Adding a trailing / to root_path only if it's not nil

  • Loading branch information...
1 parent 676d1b9 commit 61a2bad30b1cb8a6ed228b9c3dca29f01aef4af5 Simon COURTOIS committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/versioned_seeds.rb
View
@@ -82,7 +82,7 @@ def root_path
def root_path=(path)
@root_path = path
- @root_path += '/' unless @root_path.end_with?('/')
+ @root_path += '/' unless @root_path.nil? || @root_path.end_with?('/')
end
end

0 comments on commit 61a2bad

Please sign in to comment.