screenconcept/kuhsaft — Issue #10: Deprecation Warning for def build_association override
Author: effkay
Created: 2011-11-10 10:39:26+00:00
State: open

DEPRECATION WARNING: It looks like ActiveRecord::Reflection::AssociationReflection#build_association has been redefined, either by you or by a plugin or library that you are using. The signature of this method has changed.

Before: def build_association(*options)
After: def build_association(*options, &block)

The block argument now needs to be passed through to ActiveRecord::Base#new when this method is overridden, or else your associations will not function correctly in Rails 3.2.

This might help you find the method: #. If you run this on Ruby 1.9.2 we can tell you exactly where the method is.

(called from create at /Users/felipe/src/screenconcept/kuhsaft/app/controllers/kuhsaft/cms/pages_controller.rb:23)