Skip to content

Instantly share code, notes, and snippets.

@erikh
Created March 25, 2012 03:37
Show Gist options
  • Save erikh/d992e5d05ca511e2b9c0 to your computer and use it in GitHub Desktop.
Save erikh/d992e5d05ca511e2b9c0 to your computer and use it in GitHub Desktop.
Report.create(
:success => true,
:created_at => DateTime.now,
:resources => report_hash[:resources].map { |x| Resource.create(:resource => x) }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment