Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4612

skip validation in parent class

$
0
0

I have a few classes deriving from A.A does some validationIn the specific case of class B that inherits from A, I'd like to skip the validation.

I'm using active interaction btw

class A < ActiveInteraction::Base  string :s  validate :valid  private  def valid    #raise something unless s equals "banana"  endendclass B < A   #do something here to skip A's validation??            def execute    #super cool logic  endend

Viewing all articles
Browse latest Browse all 4612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>