Skip to content

Instantly share code, notes, and snippets.

@jnwheeler44
Created November 3, 2012 14:10
Show Gist options
  • Select an option

  • Save jnwheeler44/4007478 to your computer and use it in GitHub Desktop.

Select an option

Save jnwheeler44/4007478 to your computer and use it in GitHub Desktop.
class Result
def active_report
active_reports.first
end
def get_date_of_report
if active_report
active_report.date_reported.strftime('%m/%d/%Y ')
else
'No Report'
end
end
def get_datetime_result_date_of_report
if active_report
active_report.date_reported
else
'No Report'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment