lib/polygallery/strong_params_helper.rb in polygallery-0.4.2 vs lib/polygallery/strong_params_helper.rb in polygallery-0.4.4
- old
+ new
@@ -5,11 +5,11 @@
def self.polygallery_params(title=:gallery, photos_title=:photos)
{:"#{title}_attributes" => [:id, :title, :galleryable_id, :galleryable_type,
:_destroy, polyphoto_params(photos_title) ] }
end
def self.polyphoto_params(title=:photos)
- {:"#{title}_attributes" => [:id, :photo, :title, :caption, :gallery_title,
- :gallery_id,
+ {:"#{title}_attributes" => [:id, :photo, :photo_remote_url, :photo_to_upload,
+ :title, :caption, :gallery_title, :gallery_id,
:galleryable_id, :galleryable_type, :_destroy] }
end
def polygallery_params(title=:gallery, photos_title=:photos)
StrongParamsHelper.polygallery_params title, photos_title end
def polyphoto_params(title=:photos)