Module: Sfx4::Abstract::AzLetterGroup

Included in:
Local::AzLetterGroup
Defined in:
app/models/sfx4/abstract/az_letter_group.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object


11
12
13
14
15
16
17
18
19
20
21
# File 'app/models/sfx4/abstract/az_letter_group.rb', line 11

def self.included(klass)
  klass.class_eval do
    self.table_name = 'AZ_LETTER_GROUP'
    self.primary_key = 'AZ_LETTER_GROUP_ID'

    belongs_to :az_title,
               :foreign_key => 'AZ_TITLE_ID',
               :class_name => "#{klass.to_s.deconstantize}::AzTitle"

  end
end