Return to Snippet

Revision: 2723
at April 4, 2007 21:23 by vanne


Initial Code
class <<ActiveRecord::Base
  alias_method :[], :find
end

Initial URL
http://weblog.jamisbuck.org/2007/4/4/activerecord-base-find-shortcut

Initial Description
Put this in environment.rb to use in your whole app or the console

Initial Title
Shortcut for find method in rails

Initial Tags
rails, ruby

Initial Language
Ruby