Module: Sfx4::Abstract::AzTitleSearch
- Included in:
- Local::AzTitleSearch
- Defined in:
- app/models/sfx4/abstract/az_title_search.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'app/models/sfx4/abstract/az_title_search.rb', line 12 def self.included(klass) klass.class_eval do self.table_name = 'AZ_TITLE_SEARCH' self.primary_key = 'AZ_TITLE_SEARCH_ID' belongs_to :az_title, :foreign_key => 'AZ_TITLE_ID', :class_name => "#{klass.to_s.deconstantize}::AzTitle" end end |