Skip to content

Instantly share code, notes, and snippets.

@mccun934
Created July 30, 2012 19:22
Show Gist options
  • Select an option

  • Save mccun934/3209343 to your computer and use it in GitHub Desktop.

Select an option

Save mccun934/3209343 to your computer and use it in GitHub Desktop.
(rdb:1) eval @changeset.environment
#<KTEnvironment id: 2, name: "DEV", description: nil, library: false, organization_id: 1, created_at: "2012-07-27 21:24:41", updated_at: "2012-07-27 21:24:41">
(rdb:1) eval @changeset.environment.to_json
"{\"prior\":\"Library\",\"name\":\"DEV\",\"library\":false,\"organization\":\"ACME_Corporation\",\"organization_id\":1,\"prior_id\":1,\"id\":2,\"created_at\":\"2012-07-27T21:24:41Z\",\"updated_at\":\"2012-07-27T21:24:41Z\",\"description\":null}"
(rdb:1) eval @changeset.to_json
NoMethodError Exception: protected method `to_json' called for #<DeletionChangeset:0x7faa7f60a488>
(rdb:1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment