app/models/activeadmin_selleo_cms/asset.rb in activeadmin-selleo-cms-0.0.40 vs app/models/activeadmin_selleo_cms/asset.rb in activeadmin-selleo-cms-0.0.41

- old
+ new

@@ -12,10 +12,10 @@ :path => ":rails_root/public/system/cms/covers/:id/:style_:basename.:extension", :styles => Proc.new{ |attachment| attachment.instance.cover_sizes }, :default_style => :normal validates_attachment_size :cover, :less_than => 10.megabytes - validates_presence_of :assetable + #validates_presence_of :assetable def url(format=nil) data.url(format) end