I have validate method in my model
def validate
super
if some condition
errors.add('', 'some text')
end
end
This method call on Create and Update. I don't want to call on Update. How can I do that?
I am using rails2.3.11 and jruby.
Update:
I can use this one validate :custom_validation, :on => :create
, but How they called on Create and Update??
I also checked validate_on_create
, but still I am not figureout when this validate
called?