Module: KirguduRefs::ModelBasicProperties::OperatingSystemID
- Defined in:
- app/helpers/kirgudu_refs/model_basic_properties.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
227 228 229 230 231 232 233 234 |
# File 'app/helpers/kirgudu_refs/model_basic_properties.rb', line 227 def self.included(base) base.belongs_to :operating_system, class_name: ::KirguduRefs::It::, foreign_key: :operating_system_id base.scope :by_operating_system, lambda { |value| base.where(operating_system_id: value) if value } base.class_eval do include InstanceMethods end end |