mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
target is always an array
This commit is contained in:
@@ -46,11 +46,6 @@ module ActiveRecord
|
||||
|
||||
def to_ary
|
||||
load_target
|
||||
if @target.is_a?(Array)
|
||||
@target
|
||||
else
|
||||
Array.wrap(@target)
|
||||
end
|
||||
end
|
||||
alias_method :to_a, :to_ary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user