Skip to content

Instantly share code, notes, and snippets.

Created January 13, 2016 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4b7eb0f1a8efaa7cde6a to your computer and use it in GitHub Desktop.
Save anonymous/4b7eb0f1a8efaa7cde6a to your computer and use it in GitHub Desktop.
def test
dateStatusArray = []
dateStatusHash = {'time' => audits.pluck(:created_at), 'label' => audits.map(&:audited_changes).map { |i| i['status'].kind_of?(Array) ? i['status'].last : i['status'] }.compact }
dateStatusArray.push dateStatusHash
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment