Skip to content

Commit 825d719

Browse files
committed
Remove redundant self
1 parent 7ca3060 commit 825d719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/active_model/mocks/mocks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def persisted?
212212
module ActiveRecordStubExtensions
213213
# Stubs `id` (or other primary key method) to return nil
214214
def as_new_record
215-
self.__send__("#{self.class.primary_key}=", nil)
215+
__send__("#{self.class.primary_key}=", nil)
216216
super
217217
end
218218

0 commit comments

Comments
 (0)