app/models/curation.rb
# TODO - this just raises the first error. We shoudln't do that.
this just raises the first error. We shoudln't do that.
this just raises the first error . We shoudln ' t do that .
def validate
    return @errors if @errors 
    @errors = []
    check_hide_reasons_missing
    check_untrust_reasons_missing
    check_vetted_invalid
    check_visibility_invalid
    check_untrust_reasons_invalid
    check_for_preview
    @errors
  end
def validate return @errors if @errors @errors = [ ] check_hide_reasons_missing check_untrust_reasons_missing check_vetted_invalid check_visibility_invalid check_untrust_reasons_invalid check_for_preview @errors end
TODO - this just raises the first error.
TODO - this just raises the first error .
# Note you cannot try validation twice.