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
14 15 16 |
# File 'lib/unscoped_associations.rb', line 14 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
18 19 20 |
# File 'lib/unscoped_associations.rb', line 18 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
22 23 24 |
# File 'lib/unscoped_associations.rb', line 22 def has_one_with_unscoped(name, scope = nil, = {}) build_unscoped(:has_one, name, scope, ) end |