# Where lies the deprication here?

**URL:** <https://www.ruby-forum.com/t/where-lies-the-deprication-here/90421>\
**Category:** Rails\
**Created:** [March 28, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/where-lies-the-deprication-here/90421 "2007-03-28T17:15:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [March 28, 2007, 5:15pm UTC](https://www.ruby-forum.com/t/where-lies-the-deprication-here/90421/1 "2007-03-28T17:15:18Z")

</div>

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](http://www.rubyonrails.org/deprecation) for details. See  
[http://www.rubyonrails.org/deprecation](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

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [March 28, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/where-lies-the-deprication-here/90421/2 "2007-03-28T23:50:43Z")

</div>

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
