-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
FrozenRecord.Scope#find, in frozen_record/scope.rb, does not support that a block is passed to it
def find(id)
raise RecordNotFound, "Can't lookup record without ID" unless id
scope = self
if @limit || @offset
scope = limit(nil).offset(nil)
end
scope.find_by_id(id) or raise RecordNotFound, "Couldn't find a record with ID = #{id.inspect}"
endIt seems it should, as ActiveRecord.FinderMethods#find in active_record/relation/finder_methods.rb
def find(*args)
return super if block_given?
find_with_ids(*args)
endMetadata
Metadata
Assignees
Labels
No labels