Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

Commit

Permalink
Always expand the paths when registering new data paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jul 4, 2011
1 parent 168c8b3 commit 5ae14bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/data_paths/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def data_paths
# @since 0.3.0
#
def register_data_path(path)
path = File.expand_path(path)

DataPaths.register(path)

data_paths << path unless data_paths.include?(path)
Expand Down

0 comments on commit 5ae14bf

Please sign in to comment.