server/lib/cimi/service/base.rb
# Extend the base model with database methods
Extend the base model with database methods
Extend the base model with database methods
def after_retrieve
      attributes_to_copy.each { |a| @model[a] = @entity[a] }
      @model.property ||= {}
      @model.property.merge!(@entity.properties)
    end
def after_retrieve attributes_to_copy . each { | a | @model [ a ] = @entity [ a ] } @model . property ||= { } @model . property . merge! ( @entity . properties ) end
Extend the base model with database methods
Extend the base model with database methods