Module: Immortal::SingularAssociation

Defined in:
lib/immortal/singular_association.rb

Overview

Mixin to provide the singular association readers for _only_deleted and _with_deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#only_deleted_targetObject (readonly)

Returns the value of attribute only_deleted_target.



5
6
7
# File 'lib/immortal/singular_association.rb', line 5

def only_deleted_target
  @only_deleted_target
end

#with_deleted_targetObject (readonly)

Returns the value of attribute with_deleted_target.



5
6
7
# File 'lib/immortal/singular_association.rb', line 5

def with_deleted_target
  @with_deleted_target
end

Instance Method Details

#only_deleted_reader(force_reload = false) ⇒ Object



11
12
13
# File 'lib/immortal/singular_association.rb', line 11

def only_deleted_reader(force_reload = false)
  reader_only_deleted(force_reload)
end

#with_deleted_reader(force_reload = false) ⇒ Object



7
8
9
# File 'lib/immortal/singular_association.rb', line 7

def with_deleted_reader(force_reload = false)
  reader_with_deleted(force_reload)
end