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

Version Path
polygallery-0.2.1 app/controllers/concerns/polygallery/strong_params.rb
polygallery-0.1.9 app/controllers/concerns/polygallery/strong_params.rb
polygallery-0.1.8 app/controllers/concerns/polygallery/strong_params.rb
polygallery-0.1.7 app/controllers/concerns/polygallery/strong_params.rb
polygallery-0.1.6 app/controllers/concerns/polygallery/strong_params.rb
polygallery-0.1.4 app/controllers/concerns/polygallery/strong_params.rb