Module: Octopus::Rails3::Persistence
- Defined in:
- lib/octopus/rails3/persistence.rb
Instance Method Summary collapse
- #delete ⇒ Object
- #destroy ⇒ Object
- #reload ⇒ Object
- #reload_connection ⇒ Object
- #update_attribute(name, value) ⇒ Object
- #update_attributes(attributes) ⇒ Object
- #update_attributes!(attributes) ⇒ Object
Instance Method Details
#delete ⇒ Object
28 29 30 31 |
# File 'lib/octopus/rails3/persistence.rb', line 28 def delete reload_connection() super end |
#destroy ⇒ Object
33 34 35 36 |
# File 'lib/octopus/rails3/persistence.rb', line 33 def destroy reload_connection() super end |
#reload ⇒ Object
23 24 25 26 |
# File 'lib/octopus/rails3/persistence.rb', line 23 def reload reload_connection() super end |
#reload_connection ⇒ Object
4 5 6 |
# File 'lib/octopus/rails3/persistence.rb', line 4 def reload_connection() set_connection() if should_set_current_shard? end |
#update_attribute(name, value) ⇒ Object
8 9 10 11 |
# File 'lib/octopus/rails3/persistence.rb', line 8 def update_attribute(name, value) reload_connection() super(name, value) end |
#update_attributes(attributes) ⇒ Object
13 14 15 16 |
# File 'lib/octopus/rails3/persistence.rb', line 13 def update_attributes(attributes) reload_connection() super(attributes) end |
#update_attributes!(attributes) ⇒ Object
18 19 20 21 |
# File 'lib/octopus/rails3/persistence.rb', line 18 def update_attributes!(attributes) reload_connection() super(attributes) end |