Permalink
Browse files

fixing space errors

  • Loading branch information...
tenderlove committed Sep 30, 2010
1 parent 96c19ff commit fb526a0470d416712e142bb1aa9ed7be37da00e1
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/association_collection.rb
@@ -492,8 +492,8 @@ def callback(method, record)
def callbacks_for(callback_name)
full_callback_name = "#{callback_name}_for_#{@reflection.name}"
@owner.class.read_inheritable_attribute(full_callback_name.to_sym) || []
- end
-
+ end
+
def ensure_owner_is_not_new
if @owner.new_record?
raise ActiveRecord::RecordNotSaved, "You cannot call create unless the parent is saved"

0 comments on commit fb526a0

Please sign in to comment.