That''s where the warning is being issued, but the actual problem is
going to be in the line where you called has_many with a :dependent
=> true.
-faisal
On Mar 28, 2007, at 11:13 AM, Michael Steinfeld wrote:
>
> Hi,
>
> I keep getting this in my development.log and I have no idea how
> important it is or where it is coming from. It''s peeked my
curiosity,
> so if anyone knows..
>
> Parameters: {"action"=>"index",
"controller"=>"blog"}
> DEPRECATION WARNING: The :dependent => true option is deprecated and
> will be removed from Rails 2.0. Please use :dependent => :destroy
> instead. See http://www.rubyonrails.org/deprecation for details. See
> http://www.rubyonrails.org/deprecation for details. (called from
> has_many at /Users/mike/betablog/config/../vendor/rails/
> activerecord/lib/active_record/associations.rb:550)
>
> line 550 is the "has_many()" method.
>
> def has_many(association_id, options = {}, &extension)
> reflection = create_has_many_reflection(association_id,
> options, &extension)
>
> configure_dependency_for_has_many(reflection)
>
> if options[:through]
> collection_reader_method(reflection,
> HasManyThroughAssociation)
> else
> add_multiple_associated_save_callbacks(reflection.name)
> add_association_callbacks(reflection.name,
> reflection.options)
> collection_accessor_methods(reflection, HasManyAssociation)
> end
>
> add_deprecated_api_for_has_many(reflection.name)
> end
>
> Is this something I should worry about blowing up my app?
>
> Regards,
> --
> -mike
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---