| Class | Storage |
| In: |
app/models/storage.rb
|
| Parent: | ActiveRecord::Base |
添付ファイルを保存するサーバのモデル。
現在のユーザーに関連するインスタンスを返す。
# File app/models/storage.rb, line 27
27: def self.current
28: if u = User.current
29: if s = u.person.domain.storage
30: return s
31: end
32: end
33: r = Pathname.new(RAILS_ROOT) + "tmp"
34: return Storage.new(:root => r.to_s, :separator => "/")
35: end