/ Published in: Ruby
URL: http://weblog.jamisbuck.org/2007/4/4/activerecord-base-find-shortcut
Put this in environment.rb to use in your whole app or the console
Expand |
Embed | Plain Text
class <<ActiveRecord::Base alias_method :[], :find end
You need to login to post a comment.
