Sha256: c035f16b6eb2940ad22a07f9d4c992db108c8ddcbf827f78a66df9e28189802a
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
module G5Updatable class Client < ActiveRecord::Base include G5Updatable::FirstClassProperties include G5Updatable::UrnAsParameter has_many(:locations, { class_name: 'G5Updatable::Location', foreign_key: :client_urn, primary_key: :urn, }) validates :uid, :urn, presence: true, uniqueness: true CENTRALIZED_CLS_URL_PROPERTY = 'centralized_cls_url'.freeze CENTRALIZED_CMS_URL_PROPERTY = 'centralized_cms_url'.freeze def centralized_cls? properties[CENTRALIZED_CLS_URL_PROPERTY].present? end def centralized_cms? properties[CENTRALIZED_CMS_URL_PROPERTY].present? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g5_updatable-1.0.2.pre.1 | app/models/g5_updatable/client.rb |