class UserPlane::FreshValidator

Public Instance Methods

validate(record) click to toggle source
# File lib/user_plane/fresh_validator.rb, line 5
def validate(record)
  record.errors.add(:created_at, 'has expired') if record.stale?
end