Provide acts_as_alectrico hook to your models.
Append act_as_alectrico to you model to let your model respond to last_quack instance method
Append acts_as_alectrico(:alectrico_text_field => :last_tweet) to let yout model respond to last_tweet method
Method quack it is also included as instance methods of models that you are using with acts_as_alectrico hook.
Add this line to your application's Gemfile: gem "alectrico"
gem "alectrico"And then execute:
$ bundleOr install it yourself as:
$ gem install alectricoalectrico®
The gem is available as open source under the terms of the MIT License.