Sha256: f7261974a8fcce44accbed2956b189222cc61a59f420d88005d6fe95533348b4
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
module Msip module Concerns module Models module Grupo extend ActiveSupport::Concern include Msip::Basica included do self.table_name = 'msip_grupo' # Nombre de grupo puede tener minúscula/mayúscula def nombre=(val) self[:nombre] = val.squish if val end has_and_belongs_to_many :usuario, class_name: "::Usuario", foreign_key: "grupo_id", association_foreign_key: "usuario_id", join_table: 'msip_grupo_usuario', validate: true end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | lib/msip/concerns/models/grupo.rb |
msip-2.2.0.alfa2 | lib/msip/concerns/models/grupo.rb |
msip-2.2a2 | lib/msip/concerns/models/grupo.rb |