rails/rails — comment on commit f1a534af98950efd9969deea1540717c4516d673
File: activerecord/lib/active_record/attribute_methods.rb line 32
By jonleighton:

BTW the reason I added this is that without it the generation of methods happened differently depending on which class was added first. Consider:

``` ruby
class A < AR::Base; end
class B < A; end
```

Suppose there is a title column. If you do:

``` ruby
A.new.title
B.new.title
```

1. Line 1 generates attribute methods.
2. Line 2 already responds to `title`, so nothing generated.

But if you do:

``` ruby
B.new.title
A.new.title
```

1. Line 1 generates `title` method in module for `B`
2. Line 2 generates `title` method in module for `A`
3. Now if you do `A.reset_column_information`, `B` will still have a `title` method. (This was causing issues with some tests during this change, hence why I added this method.)