Module: UnscopedAssociations::ClassMethods
- Defined in:
- lib/unscoped_associations.rb
Instance Method Summary collapse
- #belongs_to_with_unscoped(name, scope = nil, options = {}) ⇒ Object
- #has_many_with_unscoped(name, scope = nil, options = {}, &extension) ⇒ Object
- #has_one_with_unscoped(name, scope = nil, options = {}) ⇒ Object
Instance Method Details
#belongs_to_with_unscoped(name, scope = nil, options = {}) ⇒ Object
16 17 18 |
# File 'lib/unscoped_associations.rb', line 16 def belongs_to_with_unscoped(name, scope = nil, = {}) build_unscoped(:belongs_to, name, scope, ) end |
#has_many_with_unscoped(name, scope = nil, options = {}, &extension) ⇒ Object
20 21 22 |
# File 'lib/unscoped_associations.rb', line 20 def has_many_with_unscoped(name, scope = nil, = {}, &extension) build_unscoped(:has_many, name, scope, , &extension) end |
#has_one_with_unscoped(name, scope = nil, options = {}) ⇒ Object
24 25 26 |
# File 'lib/unscoped_associations.rb', line 24 def has_one_with_unscoped(name, scope = nil, = {}) build_unscoped(:has_one, name, scope, ) end |