add emails for newsletter
This commit is contained in:
22
app/admin/emails.rb
Normal file
22
app/admin/emails.rb
Normal file
@ -0,0 +1,22 @@
|
||||
ActiveAdmin.register Email do
|
||||
csv do
|
||||
column :email
|
||||
# preserve case
|
||||
end
|
||||
# See permitted parameters documentation:
|
||||
# https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
|
||||
#
|
||||
# Uncomment all parameters which should be permitted for assignment
|
||||
#
|
||||
permit_params :email
|
||||
#
|
||||
# or
|
||||
#
|
||||
# permit_params do
|
||||
# permitted = [:title, :description, :email, :phone]
|
||||
# permitted << :other if params[:action] == 'create' && current_user.admin?
|
||||
# permitted
|
||||
# end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user