can now pass ActiveRecord object