add message model and migration

This commit is contained in:
bijan committed 2022-05-12 19:44:54 +04:30
1 parent a6721fed75
commit 0185ac276c
7 files changed
+67 -3

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
ActiveAdmin.register Message do
csv do
column :title
column(:email)
column('bODY', humanize_name: false) # 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 :title, :description, :email, :phone
#
# or
#
# permit_params do
# permitted = [:title, :description, :email, :phone]
# permitted << :other if params[:action] == 'create' && current_user.admin?
# permitted
# end
end