Sha256: c565b57a591832c797d4fe228ab49e1f0c76f2e659ac8fc34711938e27cc15ce
Contents?: true
Size: 915 Bytes
Versions: 9
Compression:
Stored size: 915 Bytes
Contents
module Maestrano module Api class IdMapResource < BaseResource @model_class = Maestrano::Connector::Rails::IdMap # == Attributes =========================================================== attribute :connec_id attribute :external_entity attribute :external_id attribute :name attribute :message all_filters filter :uid, apply: lambda { |records, value, _options| records.joins(:organization).where('organizations.uid = ?', value) } filter :external_entity has_many :synchronizations def account_linked? @model.oauth_uid.present? end alias has_account_linked account_linked? def account_creation_link Maestrano::Connector::Rails::External.create_account_link(@model || nil) end def save @model.tenant = context[:client] super end end end end
Version data entries
9 entries across 9 versions & 1 rubygems