app/admin/c80_estate/properties.rb in c80_estate-0.1.0.3 vs app/admin/c80_estate/properties.rb in c80_estate-0.1.0.4
- old
+ new
@@ -11,11 +11,13 @@
:longitude,
# :atype_id,
:owner_id,
:owner_type,
:assigned_person_id,
- :assigned_person_type
+ :assigned_person_type,
+ :pphotos_attributes => [:id,:image,:_destroy],
+ :plogos_attributes => [:id,:image,:_destroy]
config.sort_order = 'id_asc'
filter :title
filter :created_at
@@ -58,9 +60,15 @@
f.has_many :pphotos, :allow_destroy => true do |gp|
gp.input :image,
:as => :file,
:hint => image_tag(gp.object.image.thumb512)
+ end
+
+ f.has_many :plogos, :allow_destroy => true do |gp|
+ gp.input :image,
+ :as => :file,
+ :hint => image_tag(gp.object.image.thumb128)
end
end
f.actions
\ No newline at end of file