Sha256: 9b34dab7bcf0256ed1311d9e3a181ef71905b021434538bbd01d30d9eb8f996f
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
class Facility < ActiveRecord::Base has_many :inventory_entry_locations has_many :inventory_entries, :through => :inventory_entry_locations belongs_to :postal_address def to_data_hash to_hash(only: [ :id, :description, :created_at, :updated_at ], postal_address: try(:postal_address).try(:to_data_hash)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_inventory-4.2.0 | app/models/facility.rb |