Sha256: f1efba2b0d5f34da41c84ef5706fe2ec6e1a134d5b35165b6bb3129177701435
Contents?: true
Size: 330 Bytes
Versions: 6
Compression:
Stored size: 330 Bytes
Contents
module Polygallery::StrongParams extend ActiveSupport::Concern included do end def polygallery_params(association='photos') [:id, :title, :_destroy, {:"#{association}_attributes" => [:id, :photo, :title, :caption, :gallery_title, :_destroy]}] end end
Version data entries
6 entries across 6 versions & 1 rubygems