Use Rails.root

A little cleanup.
This commit is contained in:
Jacques Distler 2009-11-22 01:32:58 -06:00
parent 045dcbf1f5
commit 79c8572053
6 changed files with 12 additions and 12 deletions

View file

@ -1,7 +1,7 @@
class Wiki
cattr_accessor :storage_path, :logger
self.storage_path = "#{RAILS_ROOT}/storage/"
self.storage_path = Rails.root.join('storage')
def authenticate(password)
password == (system.password || 'instiki')