Sha256: e632e1df502a2085788de84fde42e03a11c4ecd878dd9264b2da434cd277f855
Contents?: true
Size: 656 Bytes
Versions: 5
Compression:
Stored size: 656 Bytes
Contents
class Admin::ProductScopesController < Admin::BaseController helper 'admin/product_groups' resource_controller belongs_to :product_group actions :create, :destroy destroy.after :update_memberships create.response do |wants| wants.html { redirect_to edit_admin_product_group_path(parent_object) } wants.js { render :action => 'create', :layout => false} end destroy.response do |wants| wants.html { redirect_to edit_admin_product_group_path(parent_object) } wants.js { render :action => 'destroy', :layout => false} end private def update_memberships object.product_group.update_memberships end end
Version data entries
5 entries across 5 versions & 1 rubygems