Module: Remotable::Nosync
- Included in:
- Remotable, ActiveRecordExtender, ActiveRecordExtender::ClassMethods
- Defined in:
- lib/remotable/nosync.rb
Instance Method Summary collapse
Instance Method Details
#nosync ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/remotable/nosync.rb', line 9 def nosync value = @nosync nosync! yield ensure self.nosync = value end |
#nosync! ⇒ Object
5 6 7 |
# File 'lib/remotable/nosync.rb', line 5 def nosync! self.nosync = true end |
#nosync=(val) ⇒ Object
17 18 19 |
# File 'lib/remotable/nosync.rb', line 17 def nosync=(val) @nosync = (val == true) end |
#nosync? ⇒ Boolean
21 22 23 |
# File 'lib/remotable/nosync.rb', line 21 def nosync? @nosync == true end |