app/models/attachment.rb in fullstack-cms-0.1.17 vs app/models/attachment.rb in fullstack-cms-0.2.1
- old
+ new
@@ -2,15 +2,10 @@
field :name, :string
alias_attribute :title, :name
field :description, :text
has_attached :file
-
- # validates_attachment :file, :presence => true,
- # :size => { :in => 0..1000.megabytes }
-
belongs_to :attachable, :polymorphic => true
- attr_accessible :name, :description, :file, :attachable, :attachable_id, :attachable_type, :title
end