Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STI Parent Callbacks Not Firing #4712

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

STI Parent Callbacks Not Firing #4712

rapind opened this issue Jan 26, 2012 · 1 comment

Comments

@rapind
Copy link

rapind commented Jan 26, 2012

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
Copy link
Author

rapind commented Jan 26, 2012

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

@rapind rapind closed this as completed Jan 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant