{"action":"closed","number":12,"pull_request":{"url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls/12","id":24453567,"html_url":"https://github.com/scarfacedeb/rails_admin_globalize_field/pull/12","diff_url":"https://github.com/scarfacedeb/rails_admin_globalize_field/pull/12.diff","patch_url":"https://github.com/scarfacedeb/rails_admin_globalize_field/pull/12.patch","issue_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/issues/12","number":12,"state":"closed","locked":false,"title":"Call compact on translations.keys to fix calling to_sym on nil","user":{"login":"travisvalentine","id":1275771,"avatar_url":"https://avatars.githubusercontent.com/u/1275771?v=3","gravatar_id":"","url":"https://api.github.com/users/travisvalentine","html_url":"https://github.com/travisvalentine","followers_url":"https://api.github.com/users/travisvalentine/followers","following_url":"https://api.github.com/users/travisvalentine/following{/other_user}","gists_url":"https://api.github.com/users/travisvalentine/gists{/gist_id}","starred_url":"https://api.github.com/users/travisvalentine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisvalentine/subscriptions","organizations_url":"https://api.github.com/users/travisvalentine/orgs","repos_url":"https://api.github.com/users/travisvalentine/repos","events_url":"https://api.github.com/users/travisvalentine/events{/privacy}","received_events_url":"https://api.github.com/users/travisvalentine/received_events","type":"User","site_admin":false},"body":"This should fix #10. I reproduced it by attempting to save my `Page` model translations. Here's what my model looks like:\r\n\r\n```\r\nclass Page < ActiveRecord::Base\r\n  has_many :statistics\r\n\r\n  translates :hero_title, :hero_subtitle\r\n  accepts_nested_attributes_for :translations, allow_destroy: true\r\nend\r\n```\r\n\r\nIt looks like this error occurs when there are no other `translations` for other locales besides the default. Once the translation for the new locale is added, the error isn't thrown.","created_at":"2014-11-14T16:41:19Z","updated_at":"2015-04-22T19:17:27Z","closed_at":"2015-04-22T19:17:27Z","merged_at":null,"merge_commit_sha":"b083c3186b71df7ac3afc6dcd784367c89706f22","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls/12/commits","review_comments_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls/12/comments","review_comment_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/issues/12/comments","statuses_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/statuses/3e6803e058d4ebd45d1b15748fd1813060fbf8e5","head":{"label":"travisvalentine:nil-translation-keys","ref":"nil-translation-keys","sha":"3e6803e058d4ebd45d1b15748fd1813060fbf8e5","user":{"login":"travisvalentine","id":1275771,"avatar_url":"https://avatars.githubusercontent.com/u/1275771?v=3","gravatar_id":"","url":"https://api.github.com/users/travisvalentine","html_url":"https://github.com/travisvalentine","followers_url":"https://api.github.com/users/travisvalentine/followers","following_url":"https://api.github.com/users/travisvalentine/following{/other_user}","gists_url":"https://api.github.com/users/travisvalentine/gists{/gist_id}","starred_url":"https://api.github.com/users/travisvalentine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisvalentine/subscriptions","organizations_url":"https://api.github.com/users/travisvalentine/orgs","repos_url":"https://api.github.com/users/travisvalentine/repos","events_url":"https://api.github.com/users/travisvalentine/events{/privacy}","received_events_url":"https://api.github.com/users/travisvalentine/received_events","type":"User","site_admin":false},"repo":{"id":26647561,"name":"rails_admin_globalize_field","full_name":"travisvalentine/rails_admin_globalize_field","owner":{"login":"travisvalentine","id":1275771,"avatar_url":"https://avatars.githubusercontent.com/u/1275771?v=3","gravatar_id":"","url":"https://api.github.com/users/travisvalentine","html_url":"https://github.com/travisvalentine","followers_url":"https://api.github.com/users/travisvalentine/followers","following_url":"https://api.github.com/users/travisvalentine/following{/other_user}","gists_url":"https://api.github.com/users/travisvalentine/gists{/gist_id}","starred_url":"https://api.github.com/users/travisvalentine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisvalentine/subscriptions","organizations_url":"https://api.github.com/users/travisvalentine/orgs","repos_url":"https://api.github.com/users/travisvalentine/repos","events_url":"https://api.github.com/users/travisvalentine/events{/privacy}","received_events_url":"https://api.github.com/users/travisvalentine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/travisvalentine/rails_admin_globalize_field","description":"Tabbed interface and custom field type for globalize3 translations for Rails_admin","fork":true,"url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field","forks_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/forks","keys_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/teams","hooks_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/hooks","issue_events_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/issues/events{/number}","events_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/events","assignees_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/assignees{/user}","branches_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/branches{/branch}","tags_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/tags","blobs_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/git/refs{/sha}","trees_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/statuses/{sha}","languages_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/languages","stargazers_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/stargazers","contributors_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/contributors","subscribers_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/subscribers","subscription_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/subscription","commits_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/commits{/sha}","git_commits_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/git/commits{/sha}","comments_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/comments{/number}","issue_comment_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/issues/comments{/number}","contents_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/contents/{+path}","compare_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/merges","archive_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/downloads","issues_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/issues{/number}","pulls_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/pulls{/number}","milestones_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/milestones{/number}","notifications_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/labels{/name}","releases_url":"https://api.github.com/repos/travisvalentine/rails_admin_globalize_field/releases{/id}","created_at":"2014-11-14T16:38:24Z","updated_at":"2014-11-14T16:38:25Z","pushed_at":"2014-11-14T16:40:46Z","git_url":"git://github.com/travisvalentine/rails_admin_globalize_field.git","ssh_url":"git@github.com:travisvalentine/rails_admin_globalize_field.git","clone_url":"https://github.com/travisvalentine/rails_admin_globalize_field.git","svn_url":"https://github.com/travisvalentine/rails_admin_globalize_field","homepage":null,"size":138,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scarfacedeb:master","ref":"master","sha":"b12f4bdabce4fb9d0a3f693445cc60e123df655a","user":{"login":"scarfacedeb","id":706648,"avatar_url":"https://avatars.githubusercontent.com/u/706648?v=3","gravatar_id":"","url":"https://api.github.com/users/scarfacedeb","html_url":"https://github.com/scarfacedeb","followers_url":"https://api.github.com/users/scarfacedeb/followers","following_url":"https://api.github.com/users/scarfacedeb/following{/other_user}","gists_url":"https://api.github.com/users/scarfacedeb/gists{/gist_id}","starred_url":"https://api.github.com/users/scarfacedeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarfacedeb/subscriptions","organizations_url":"https://api.github.com/users/scarfacedeb/orgs","repos_url":"https://api.github.com/users/scarfacedeb/repos","events_url":"https://api.github.com/users/scarfacedeb/events{/privacy}","received_events_url":"https://api.github.com/users/scarfacedeb/received_events","type":"User","site_admin":false},"repo":{"id":12412074,"name":"rails_admin_globalize_field","full_name":"scarfacedeb/rails_admin_globalize_field","owner":{"login":"scarfacedeb","id":706648,"avatar_url":"https://avatars.githubusercontent.com/u/706648?v=3","gravatar_id":"","url":"https://api.github.com/users/scarfacedeb","html_url":"https://github.com/scarfacedeb","followers_url":"https://api.github.com/users/scarfacedeb/followers","following_url":"https://api.github.com/users/scarfacedeb/following{/other_user}","gists_url":"https://api.github.com/users/scarfacedeb/gists{/gist_id}","starred_url":"https://api.github.com/users/scarfacedeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarfacedeb/subscriptions","organizations_url":"https://api.github.com/users/scarfacedeb/orgs","repos_url":"https://api.github.com/users/scarfacedeb/repos","events_url":"https://api.github.com/users/scarfacedeb/events{/privacy}","received_events_url":"https://api.github.com/users/scarfacedeb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scarfacedeb/rails_admin_globalize_field","description":"Tabbed interface and custom field type for globalize translations for Rails_admin","fork":false,"url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field","forks_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/forks","keys_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/teams","hooks_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/hooks","issue_events_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/issues/events{/number}","events_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/events","assignees_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/assignees{/user}","branches_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/branches{/branch}","tags_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/tags","blobs_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/git/refs{/sha}","trees_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/statuses/{sha}","languages_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/languages","stargazers_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/stargazers","contributors_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/contributors","subscribers_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/subscribers","subscription_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/subscription","commits_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/commits{/sha}","git_commits_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/git/commits{/sha}","comments_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/comments{/number}","issue_comment_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/issues/comments{/number}","contents_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/contents/{+path}","compare_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/merges","archive_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/downloads","issues_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/issues{/number}","pulls_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls{/number}","milestones_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/milestones{/number}","notifications_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/labels{/name}","releases_url":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/releases{/id}","created_at":"2013-08-27T16:57:13Z","updated_at":"2015-02-24T16:14:08Z","pushed_at":"2014-12-06T20:51:09Z","git_url":"git://github.com/scarfacedeb/rails_admin_globalize_field.git","ssh_url":"git@github.com:scarfacedeb/rails_admin_globalize_field.git","clone_url":"https://github.com/scarfacedeb/rails_admin_globalize_field.git","svn_url":"https://github.com/scarfacedeb/rails_admin_globalize_field","homepage":"","size":313,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":3,"forks":15,"open_issues":3,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls/12"},"html":{"href":"https://github.com/scarfacedeb/rails_admin_globalize_field/pull/12"},"issue":{"href":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/issues/12"},"comments":{"href":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/scarfacedeb/rails_admin_globalize_field/statuses/3e6803e058d4ebd45d1b15748fd1813060fbf8e5"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}