Sha256: cc09b15716b17336d52a7552241f28b42afa21fdb237fab5e391bd97acc1c548

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

module CmpaAuth
  module Models
    module Setor
      def self.included(receiver) #:nodoc:
        receiver.class_eval do
          
          include CmpaAuth::PortalConnection
          
          has_many :lotacoes_temporarias, :foreign_key => :setor_id, :class_name => '::LotacaoTemporaria'
          has_many :funcionarios, :through => :lotacoes_temporarias, :source => :pessoa
          
          set_table_name :setores
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cmpa_auth-1.0.5 lib/cmpa_auth/models/setor.rb
cmpa_auth-1.0.4 lib/cmpa_auth/models/setor.rb
cmpa_auth-1.0.3 lib/cmpa_auth/models/setor.rb
cmpa_auth-1.0.2 lib/cmpa_auth/models/setor.rb