app/domain/validators/item_validator.rb
# The most important thing to use validator as a separated class
The most important thing to use validator as a separated class
The most important thing to use validator as a separated class
def validate(item)
    __setobj__(item)
    super
    item.errors.messages.merge!(errors.messages)
  end
def validate ( item ) __setobj__ ( item ) super item . errors . messages . merge! ( errors . messages ) end
The most important thing to use validator as a separated class
The most important thing to use validator as a separated class
item
<not_specific>