We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca3060 commit 825d719Copy full SHA for 825d719
lib/rspec/active_model/mocks/mocks.rb
@@ -212,7 +212,7 @@ def persisted?
212
module ActiveRecordStubExtensions
213
# Stubs `id` (or other primary key method) to return nil
214
def as_new_record
215
- self.__send__("#{self.class.primary_key}=", nil)
+ __send__("#{self.class.primary_key}=", nil)
216
super
217
end
218
0 commit comments