Here is my class:
class Document < ActiveRecord::Base
puts “Called initialize…”
This generates the following error:
You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occured while evaluating nil.initialize