Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created December 28, 2010 18:13
Show Gist options
  • Save knowuh/757501 to your computer and use it in GitHub Desktop.
Save knowuh/757501 to your computer and use it in GitHub Desktop.
def version_report(acts)
acts.map do |a|
no_versions = a.versions.size
dates = a.versions.reverse.map{|v| "#{v.updated_at}"}.join(",")
puts "#{a.id}, #{a.name}, #{no_versions}, #{dates}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment