change plugins.private_flag to public_flag
This commit is contained in:
@ -3,19 +3,19 @@ ActiveAdmin.register Plugin do
|
||||
filter :name
|
||||
filter :created_at
|
||||
|
||||
permit_params :name, :html, :css, :js, :private_flag
|
||||
permit_params :name, :html, :css, :js, :public_flag
|
||||
|
||||
index do
|
||||
column :id
|
||||
column(:user) { |object| link_to object.user.login, admin_user_path(object.user) if object.user.present? }
|
||||
column :name
|
||||
column :private_flag
|
||||
column :public_flag
|
||||
actions
|
||||
end
|
||||
|
||||
form do |f|
|
||||
f.semantic_errors *f.object.errors.keys
|
||||
f.inputs :name, :html, :css, :js, :private_flag
|
||||
f.inputs :name, :html, :css, :js, :public_flag
|
||||
f.actions
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user