Added max_upload_size to the FileYard constructor
This commit is contained in:
parent
06e806fe30
commit
217dbdafdc
3 changed files with 4 additions and 3 deletions
|
@ -29,7 +29,7 @@ module AbstractWikiService
|
|||
def file_yard(web)
|
||||
raise "Web #{@web.name} does not belong to this wiki service" unless @webs.values.include?(web)
|
||||
# TODO cache FileYards
|
||||
FileYard.new("#{self.storage_path}/#{web.address}")
|
||||
FileYard.new("#{self.storage_path}/#{web.address}", web.max_upload_size)
|
||||
end
|
||||
|
||||
def init_wiki_service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue