Dear friends,
I came across this code snippet from my reading:
require 'active_record'
class Order < ActiveRecord::Base end
order = Order.find(1) ...
Looking at: http://api.rubyonrails.org/ and search for find(), find() is an instance public method. So why can we call Order.find(1) here? Shouldn't it be Order.new.find(1)?