class ResizeValidator < ActiveModel::EachValidator\r
def validate_each(record, attribute, value)\r
if record.picture and record.picture.flag_resize < 0\r
class ResizeValidator < ActiveModel::EachValidator\r
def validate_each(record, attribute, value)\r
if record.picture and record.picture.flag_resize < 0\r