Skip to content

Commit

Permalink
fixing space errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Sep 30, 2010
1 parent 96c19ff commit fb526a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fb526a0

Please sign in to comment.