Add mandatory fields to assets

This commit is contained in:
Christophe Vilayphiou committed 2012-05-17 16:40:09 +08:00
1 parent 4467bc5e48
commit 29c54e6480
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ class Asset
has_one :i18n_variable, :as => :language_value, :autosave => true, :dependent => :destroy
validates_presence_of :filename, :data
validates_presence_of :filename, :data, :asset_category_id
belongs_to :asset_category
belongs_to :assetable, polymorphic: true