Module: Fastaccess::Mixins
- Defined in:
- lib/fastaccess/mixins.rb
Overview
optional Mixins which make working with fastaccess easier, but can be seen as pollution of the models, so their use is optional. (needs include Fastaccess::Mixins)
Instance Method Summary collapse
-
#update_on(method, *args) ⇒ Object
convenience method for Fastaccess.update_content.
Instance Method Details
#update_on(method, *args) ⇒ Object
convenience method for Fastaccess.update_content
9 10 11 |
# File 'lib/fastaccess/mixins.rb', line 9 def update_on(method, *args) Fastaccess.update_content(self, :on => method, :arguments => args) end |