Sha256: b968fff4f7563883665e643ba1f878ef5f7b1cbd38463620a3a18d74158d98f2

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

module ErpInventory
  module ErpApp
    module Organizer
      module AssetManagement
        class FixedAssetsController < ::ErpApp::Organizer::BaseController

          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

        end
      end #AssetManagement
    end #Organizer
  end #ErpApp
end #ErpInventory

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erp_inventory-4.2.0 app/controllers/erp_inventory/erp_app/organizer/asset_management/fixed_assets_controller.rb
erp_inventory-4.0.0 app/controllers/erp_inventory/erp_app/organizer/asset_management/fixed_assets_controller.rb