module RSpec::Rails::Mocks::ActiveModelStubExtensions

def as_new_record

def as_new_record
  self.stub(:persisted?)  { false }
  self.stub(:id)          { nil }
  self
end