| 1 | # ActiveAdmin.register AlbumArtist do |
| 2 | # See permitted parameters documentation: |
| 3 | # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters |
| 4 | # |
| 5 | # permit_params :list, :of, :attributes, :on, :model |
| 6 | # |
| 7 | # or |
| 8 | # |
| 9 | # permit_params do |
| 10 | # permitted = [:permitted, :attributes] |
| 11 | # permitted << :other if params[:action] == 'create' && current_user.admin? |
| 12 | # permitted |
| 13 | # end |
| 14 | # permit_params :album_id, :artist_id, :primary |
| 15 | # end |