Module: Arsi::Relation
- Defined in:
- lib/arsi/relation.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#without_arsi ⇒ Object
7 8 9 10 11 12 |
# File 'lib/arsi/relation.rb', line 7 def without_arsi if block_given? raise "Use without_arsi in a chain. Don't pass it a block" end dup.tap(&:without_arsi!) end |
Instance Method Details
#delete_all ⇒ Object
23 24 25 |
# File 'lib/arsi/relation.rb', line 23 def delete_all(*) with_relation_in_connection { super } end |
#update_all ⇒ Object
27 28 29 |
# File 'lib/arsi/relation.rb', line 27 def update_all(*) with_relation_in_connection { super } end |
#without_arsi! ⇒ Object
14 15 16 |
# File 'lib/arsi/relation.rb', line 14 def without_arsi! @without_arsi = true end |
#without_arsi? ⇒ Boolean
18 19 20 21 |
# File 'lib/arsi/relation.rb', line 18 def without_arsi? return @without_arsi if defined?(@without_arsi) && @without_arsi !arsi_scopeable? end |