update inventory hide and cancan update

This commit is contained in:
Aung Myo
2017-11-30 11:19:15 +06:30
parent 67db27e35a
commit 7ce71a1960
6 changed files with 26 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
class Inventory::InventoryController < BaseInventoryController
load_and_authorize_resource
def index
@products = InventoryDefinition.all.active.order('created_at desc')
end

View File

@@ -1,6 +1,5 @@
class Origami::InDutiesController < BaseOrigamiController
before_action :set_in_duty, only: %i[show edit update edit_in_duty update_for_in_duty destroy destroy_in_duty]
# GET /in_duties
# GET /in_duties.json
def index