Skip to content

Commit

Permalink
Rename PATH to DEFAULT_PATH to be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Jan 23, 2014
1 parent ca5f899 commit 2b5c474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/catalog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ def catalog
end

module Catalog
PATH = "catalog.json"
DEFAULT_PATH = "catalog.json"

class << self
def load(path=nil)
path = ENV["DROONGA_CATALOG"] || PATH
path = ENV["DROONGA_CATALOG"] || DEFAULT_PATH
path = File.expand_path(path)
loader = CatalogLoader.new(path)
loader.load
Expand Down

0 comments on commit 2b5c474

Please sign in to comment.