Module: SoftValidate::ClassMethods

Defined in:
lib/soft_validate.rb

Instance Method Summary collapse

Instance Method Details

#soft_validates_presence_of(attr) ⇒ Object



7
8
9
10
11
# File 'lib/soft_validate.rb', line 7

def soft_validates_presence_of(attr)
  cattr_accessor :soft_attributes
  self.soft_attributes ||= Array.new
  self.soft_attributes << attr
end