Sha256: 3d63a7ebcb336d8f7834a2771a152b705ab5cf115ac65b96dd3e982be949402e
Contents?: true
Size: 626 Bytes
Versions: 3
Compression:
Stored size: 626 Bytes
Contents
require 'subj_models/concerns/comprising_external_id' require 'subj_models/concerns/shared_scopes' module SubjModels module UserSpecializationApproval def self.included(including_class) including_class.class_eval do include SubjModels::ComprisingExternalId include SubjModels::SharedScopes belongs_to :document_file belongs_to :user belongs_to :specialist_activity belongs_to :specialist_activity_document_type scope :user_id, -> (user_id) { parent_id_scope("user", user_id) } end end def to_s id.to_s # TODO end end end
Version data entries
3 entries across 3 versions & 1 rubygems