Sha256: d76e4d4000ac99083c7be06f321cd605fff046cc7ca4865f454f8ea629203b8d
Contents?: true
Size: 536 Bytes
Versions: 9
Compression:
Stored size: 536 Bytes
Contents
class Admin::ProductScopesController < Admin::BaseController helper 'admin/product_groups' resource_controller belongs_to :product_group actions :create, :destroy 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 end
Version data entries
9 entries across 9 versions & 1 rubygems