app/helpers/works_helper.rb
# select the default warning if this is a new work
select the default warning if this is a new work
select the default warning if this is a new work
def check_warning(work, warning)
    if work.nil? || work.warning_strings.empty?
      warning.name == nil
    else
      work.warning_strings.include?(warning.name)
    end
  end
def check_warning ( work , warning ) if work . nil? || work . warning_strings . empty? warning . name == nil else work . warning_strings . include? ( warning . name ) end end
select the default warning if this is a new work
select the default warning if this is a new work
work
warning