STI Parent Callbacks Not Firing #4712

Closed
rapind opened this Issue Jan 26, 2012 · 1 comment

Projects

None yet

1 participant

@rapind

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')
@rapind

This was an issue on my end. Sorry about that.

@rapind rapind closed this Jan 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment