module TestProf::Ext::ActiveRecordRefind
Adds `ActiveRecord::Base#refind` method (through refinement)
Public Instance Methods
refind()
click to toggle source
Returns new reloaded record.
Unlike `reload` this method returns completely re-initialized instance.
We need it to make sure that the state is clean.
# File lib/test_prof/ext/active_record_refind.rb, line 14 def refind self.class.find(send(self.class.primary_key)) end