app/helpers/notices_helper.rb
def end_time_check(indefinite)
    if indefinite
      return @announcement.created_at && @announcement.indefinite
    else
      return @announcement.created_at && !@announcement.indefinite
    end
  end
# if the radio_button should be selected
# returns the result for the indefinite radio_button if indifinite is true
# returns the result for the End radio_button if indefinite is false
if the radio_button should be selected
returns the result for the indefinite radio_button if indifinite is true
returns the result for the End radio_button if indefinite is false
if the radio_button should be selected returns the result for the indefinite radio_button if indifinite is true returns the result for the End radio_button if indefinite is false
def end_time_check(indefinite)
    if indefinite
      return @announcement.created_at && @announcement.indefinite
    else
      return @announcement.created_at && !@announcement.indefinite
    end
  end
def end_time_check ( indefinite ) if indefinite return @announcement . created_at && @announcement . indefinite else return @announcement . created_at && ! @announcement . indefinite end end
if the radio_button should be selected
returns the result for the indefinite radio_button if indifinite is true
returns the result for the End radio_button if indefinite is false
if the radio_button should be selected returns the result for the indefinite radio_button if indifinite is true returns the result for the End radio_button if indefinite is false
indefinite