AR callbacks not firing without register them #3830

Closed
daniel2d2art opened this Issue Dec 2, 2011 · 1 comment

2 participants

@daniel2d2art

before_validation :before_validation #this is need for fire it !

def before_validation
#do something
end

Can't use directly implementing a method with the same name as callback.

def before_validation
#do something
end

@drogus
Ruby on Rails member

The latter version is no longer supported. Please use the first one.

@drogus drogus closed this Dec 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment