Module: XBar::Rails2::Persistence
- Defined in:
- lib/xbar/rails2/persistence.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/xbar/rails2/persistence.rb', line 4 def self.included(base) base.instance_eval do alias_method_chain :destroy, :xbar alias_method_chain :delete, :xbar alias_method_chain :reload, :xbar end end |
Instance Method Details
#delete_with_xbar ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/xbar/rails2/persistence.rb', line 12 def () if should_set_current_shard? XBar.using(self.current_shard) { () } else () end end |