Class: ErpInventory::ErpApp::Organizer::AssetManagement::FixedAssetsController

Inherits:
ErpApp::Organizer::BaseController
  • Object
show all
Defined in:
app/controllers/erp_inventory/erp_app/organizer/asset_management/fixed_assets_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
# File 'app/controllers/erp_inventory/erp_app/organizer/asset_management/fixed_assets_controller.rb', line 7

def index
  fixed_assets = FixedAsset.all
  render :json => {:success => true, :fixed_assets => fixed_assets.collect { |fixed_asset| fixed_asset.to_hash(:only => [:id, :description, :created_at, :updated_at]) }}
end