Sha256: 53605c8c20b714dd09bce95eea29d7d69cad225c2a04dd82ff867c992052b356

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

module G5Updatable
  class Location < ActiveRecord::Base
    include G5Updatable::FirstClassProperties
    include G5Updatable::UrnAsParameter

    validates :uid, :urn, :client_uid, presence: true

    def client
      @client ||= G5Updatable::Client.find_by_uid(client_uid)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
g5_updatable-0.3.5 app/models/g5_updatable/location.rb
g5_updatable-0.3.4 app/models/g5_updatable/location.rb
g5_updatable-0.3.3 app/models/g5_updatable/location.rb
g5_updatable-0.3.2 app/models/g5_updatable/location.rb