Sha256: f282d7339e72dd46ea80c5869f0c58126266b40a645d96e3a25a5a93aabda595

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

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

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

    scope :by_client_uid, -> (client_uid) { where(client_uid: client_uid) }
    scope :max_updated_at, -> { maximum(:updated_at) }  

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
g5_updatable-0.5.1 app/models/g5_updatable/location.rb