Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

callback should always have a value

  • Loading branch information...
commit 6da63410cb69fa534e16f5a43aef77e73ddab4b2 1 parent 946ac5e
@tenderlove tenderlove authored
View
2  activerecord/lib/active_record/associations/collection_association.rb
@@ -523,7 +523,7 @@ def callback(method, record)
def callbacks_for(callback_name)
full_callback_name = "#{callback_name}_for_#{reflection.name}"
- owner.class.send(full_callback_name) || []
+ owner.class.send(full_callback_name)
end
# Should we deal with assoc.first or assoc.last by issuing an independent query to
Please sign in to comment.
Something went wrong with that request. Please try again.