changed extend to include for ActiveRecord.