app/admin/activeadmin_selleo_cms/asset.rb in activeadmin-selleo-cms-0.0.14 vs app/admin/activeadmin_selleo_cms/asset.rb in activeadmin-selleo-cms-0.0.16
- old
+ new
@@ -1,17 +1,10 @@
ActiveAdmin.register ActiveadminSelleoCms::Asset, { as: 'Asset' } do
config.batch_actions = false
- belongs_to :page
+ #belongs_to :page
controller do
respond_to :html, :js
-
- def destroy
- @page = ActiveadminSelleoCms::Page.find(params[:page_id])
- super do |format|
- format.js { render nothing: true }
- end
- end
end
end