activescaffold/active_scaffold — Issue #128: Rails 3.2 undefined "original_build_association_called"
Author: clyfe
Created: 2012-01-27 21:15:05+00:00
State: open

[original_build_association_called](https://github.com/rails/rails/blob/e9474c89d9583d50be485bef8fabb31a75b242bb/activerecord/lib/active_record/reflection.rb#L184) is a setter introduced in Rails 3.1 to serve for deprecations warning, in [this commit](https://github.com/rails/rails/commit/92c68dabd535e5ec180ad20d4e0ae1926a059d7d). It is just an accessor toggleing the `@original_build_association_called` instance variable. It has been removed in Rails 3.2 .

AS calls it in [extensions/active_association_reflection](https://github.com/activescaffold/active_scaffold/blob/master/lib/active_scaffold/extensions/active_association_reflection.rb#L150).

We can easily maintain compatibility with both 3.1 and 3.2 by turning the setter call into an instance variable assignment like so:

# From
self.active_association_reflection = true

# To
@active_association_reflection = true

Or even better IMHO **remove it completely**.