diff --git a/README b/README deleted file mode 100755 index e69de29..0000000 diff --git a/README.markdown b/README.markdown new file mode 100755 index 0000000..36fcdd4 --- /dev/null +++ b/README.markdown @@ -0,0 +1,50 @@ +Depot +=========== + +File management system for TOG:Community framework. + +WORK IN PROGRESS +================= + +This plugin is still under development, not use in a production environment + +== Included functionality + +* File management +* Folder management +* Filesize and disk cuota configuration +* Tag system +* File and folder privacity +* Abuse report +* And more... + +Resources +========= + +Plugin requirements +------------------- + +In case you haven't installed any of them previously you'll need the following plugins: + +* [acts\_as\_commentable](https://github.com/tog/tog/wikis/3rd-party-plugins-acts_as_commentable) +* [attachment\_fu](http://github.com/technoweenie/attachment_fu/tree/master) +* [acts\_as\_taggable\_on\_steroids](https://github.com/tog/tog/wikis/3rd-party-plugins-acts_as_taggable_on_steroids) + +Follow each link above for a short installation guide incase you have to install them. + +Install +------- + +* Install plugin form source: + +
+ruby script/plugin install git://github.com/dms/tog_depot.git
+
+ +More +------- + +[http://dmsti.es](http://dmsti.es) + + +DMS 2008, Desarrollo de Medios y Sistemas. Released under the MIT license diff --git a/app/models/depot/file.rb b/app/models/depot/file.rb index 41ec144..5678215 100755 --- a/app/models/depot/file.rb +++ b/app/models/depot/file.rb @@ -1,18 +1,3 @@ -# == Schema Information -# Schema version: 1 -# -# Table name: files -# -# id :integer(11) not null, primary key -# title :string(255) -# description :text -# user_id :integer(11) -# created_at :datetime -# updated_at :datetime -# filename :string(255) -# size :integer(11) -# - class Depot::File < ActiveRecord::Base # set_table_name :files @@ -23,7 +8,7 @@ class Depot::File < ActiveRecord::Base seo_urls belongs_to :user, :class_name => "User", :foreign_key => "user_id" - belongs_to :filefolder + belongs_to :filefolder, :class_name => "Depot::Filefolder", :foreign_key => "filefolder_id" has_attachment :storage => :file_system, :max_size => Tog::Plugins.settings(:tog_depot, "file.max_size_file").to_i.kilobytes,