Use Rails.root
A little cleanup.
This commit is contained in:
parent
045dcbf1f5
commit
79c8572053
6 changed files with 12 additions and 12 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue