Hello,
I need to remove a validator from a parent model in a child model.
Tried _validators.delete, but that does not seem to work and
validation on parent class is still called.

class Order < ActiveRecord::Base
  validate :has_available_shipment
end

class TradeOrder < Order
  # tried this from somebody's advice
  self._validators.delete(:has_available_shipment)
end

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to