Module: ActiveRecordEx::NillableFind
- Defined in:
- lib/active-record-ex/nillable_find.rb
Defined Under Namespace
Modules: ClassMethods Classes: NillableArel
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
22 23 24 25 |
# File 'lib/active-record-ex/nillable_find.rb', line 22 def self.included(base) raise ArgumentError.new("#{base} must include ManyToMany") unless base.included_modules.include? ActiveRecordEx::ManyToMany base.extend(ClassMethods) end |