rails/rails — Issue #4712: STI Parent Callbacks Not Firing
Author: rapind
Created: 2012-01-26 20:31:48+00:00
State: open

The callbacks on the parent STI class aren't firing in rails 3.1.3.

class Animal < ActiveRecord::Base

before_save :do_something

def do_something
puts "Doing stuff over here..."
end

end

class Cow < Animal
end

# Should fire the Animal callbacks?
cow = Cow.create(:color => 'Brown')