Module: Arsi::Relation
- Defined in:
- lib/arsi/relation.rb
Instance Attribute Summary collapse
-
#without_arsi ⇒ Object
Returns the value of attribute without_arsi.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#without_arsi ⇒ Object
Returns the value of attribute without_arsi.
3 4 5 |
# File 'lib/arsi/relation.rb', line 3 def without_arsi @without_arsi end |
Class Method Details
.prepended(base) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/arsi/relation.rb', line 24 def self.prepended(base) base.class_eval do alias_method :update_all_without_arsi, :update_all def update_all(*args) with_relation_in_connection { update_all_without_arsi(*args) } end end end |
Instance Method Details
#delete_all ⇒ Object
20 21 22 |
# File 'lib/arsi/relation.rb', line 20 def delete_all(*) with_relation_in_connection { super } end |
#without_arsi! ⇒ Object
12 13 14 |
# File 'lib/arsi/relation.rb', line 12 def without_arsi! @without_arsi = true end |
#without_arsi? ⇒ Boolean
16 17 18 |
# File 'lib/arsi/relation.rb', line 16 def without_arsi? @without_arsi || !arsi_scopeable? end |