{"action":"created","comment":{"url":"https://api.github.com/repos/hashicorp/vault-rails/pulls/comments/30365436","id":30365436,"diff_hunk":"@@ -28,44 +28,26 @@ module ClassMethods\n       # @option options [String] :key\n       #   the name of the encryption key (default: +#{app}_#{table}_#{column}+)\n       def vault_attribute(column, options = {})\n-        encrypted_column = options[:encrypted_column] || \"#{column}_encrypted\"\n-        path = options[:path] || \"transit\"\n-        key = options[:key] || \"#{Vault.application}_#{table_name}_#{column}\"\n+        encrypted_column = options[:encrypted_column] ||= \"#{column}_encrypted\"\n+        path = options[:path] ||= \"transit\"\n+        key = options[:key] ||= \"#{Vault.application}_#{table_name}_#{column}\"","path":"lib/vault/encrypted_model.rb","position":null,"original_position":9,"commit_id":"e07841be80fc18255c4aefa1ad054def70053a54","original_commit_id":"1bab49108c96592197646c4d4cc8e209b53cb468","user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"body":"Good catch. Fixed!","created_at":"2015-05-14T21:31:37Z","updated_at":"2015-05-14T21:31:37Z","html_url":"https://github.com/hashicorp/vault-rails/pull/4#discussion_r30365436","pull_request_url":"https://api.github.com/repos/hashicorp/vault-rails/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/hashicorp/vault-rails/pulls/comments/30365436"},"html":{"href":"https://github.com/hashicorp/vault-rails/pull/4#discussion_r30365436"},"pull_request":{"href":"https://api.github.com/repos/hashicorp/vault-rails/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/hashicorp/vault-rails/pulls/4","id":35461642,"html_url":"https://github.com/hashicorp/vault-rails/pull/4","diff_url":"https://github.com/hashicorp/vault-rails/pull/4.diff","patch_url":"https://github.com/hashicorp/vault-rails/pull/4.patch","issue_url":"https://api.github.com/repos/hashicorp/vault-rails/issues/4","number":4,"state":"open","locked":false,"title":"Add testing harness","user":{"login":"sethvargo","id":408570,"avatar_url":"https://avatars.githubusercontent.com/u/408570?v=3","gravatar_id":"","url":"https://api.github.com/users/sethvargo","html_url":"https://github.com/sethvargo","followers_url":"https://api.github.com/users/sethvargo/followers","following_url":"https://api.github.com/users/sethvargo/following{/other_user}","gists_url":"https://api.github.com/users/sethvargo/gists{/gist_id}","starred_url":"https://api.github.com/users/sethvargo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethvargo/subscriptions","organizations_url":"https://api.github.com/users/sethvargo/orgs","repos_url":"https://api.github.com/users/sethvargo/repos","events_url":"https://api.github.com/users/sethvargo/events{/privacy}","received_events_url":"https://api.github.com/users/sethvargo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-14T21:00:27Z","updated_at":"2015-05-14T21:31:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b00c98ea3a1434b369160f675eb5f5adcba2eb00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hashicorp/vault-rails/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hashicorp/vault-rails/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hashicorp/vault-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hashicorp/vault-rails/issues/4/comments","statuses_url":"https://api.github.com/repos/hashicorp/vault-rails/statuses/e07841be80fc18255c4aefa1ad054def70053a54","head":{"label":"hashicorp:sethvargo/testing","ref":"sethvargo/testing","sha":"e07841be80fc18255c4aefa1ad054def70053a54","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":34762503,"name":"vault-rails","full_name":"hashicorp/vault-rails","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/vault-rails","description":"A Rails plugin for easily integrating Vault secrets","fork":false,"url":"https://api.github.com/repos/hashicorp/vault-rails","forks_url":"https://api.github.com/repos/hashicorp/vault-rails/forks","keys_url":"https://api.github.com/repos/hashicorp/vault-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/vault-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/vault-rails/teams","hooks_url":"https://api.github.com/repos/hashicorp/vault-rails/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/vault-rails/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/vault-rails/events","assignees_url":"https://api.github.com/repos/hashicorp/vault-rails/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/vault-rails/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/vault-rails/tags","blobs_url":"https://api.github.com/repos/hashicorp/vault-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/vault-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/vault-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/vault-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/vault-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/vault-rails/languages","stargazers_url":"https://api.github.com/repos/hashicorp/vault-rails/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/vault-rails/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/vault-rails/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/vault-rails/subscription","commits_url":"https://api.github.com/repos/hashicorp/vault-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/vault-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/vault-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/vault-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/vault-rails/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/vault-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/vault-rails/merges","archive_url":"https://api.github.com/repos/hashicorp/vault-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/vault-rails/downloads","issues_url":"https://api.github.com/repos/hashicorp/vault-rails/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/vault-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/vault-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/vault-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/vault-rails/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/vault-rails/releases{/id}","created_at":"2015-04-29T00:05:30Z","updated_at":"2015-05-13T16:14:01Z","pushed_at":"2015-05-14T21:26:35Z","git_url":"git://github.com/hashicorp/vault-rails.git","ssh_url":"git@github.com:hashicorp/vault-rails.git","clone_url":"https://github.com/hashicorp/vault-rails.git","svn_url":"https://github.com/hashicorp/vault-rails","homepage":null,"size":219,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"hashicorp:master","ref":"master","sha":"67d28714ca16c9f9cc8de856b5ac2748ff627b52","user":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"repo":{"id":34762503,"name":"vault-rails","full_name":"hashicorp/vault-rails","owner":{"login":"hashicorp","id":761456,"avatar_url":"https://avatars.githubusercontent.com/u/761456?v=3","gravatar_id":"","url":"https://api.github.com/users/hashicorp","html_url":"https://github.com/hashicorp","followers_url":"https://api.github.com/users/hashicorp/followers","following_url":"https://api.github.com/users/hashicorp/following{/other_user}","gists_url":"https://api.github.com/users/hashicorp/gists{/gist_id}","starred_url":"https://api.github.com/users/hashicorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashicorp/subscriptions","organizations_url":"https://api.github.com/users/hashicorp/orgs","repos_url":"https://api.github.com/users/hashicorp/repos","events_url":"https://api.github.com/users/hashicorp/events{/privacy}","received_events_url":"https://api.github.com/users/hashicorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hashicorp/vault-rails","description":"A Rails plugin for easily integrating Vault secrets","fork":false,"url":"https://api.github.com/repos/hashicorp/vault-rails","forks_url":"https://api.github.com/repos/hashicorp/vault-rails/forks","keys_url":"https://api.github.com/repos/hashicorp/vault-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hashicorp/vault-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hashicorp/vault-rails/teams","hooks_url":"https://api.github.com/repos/hashicorp/vault-rails/hooks","issue_events_url":"https://api.github.com/repos/hashicorp/vault-rails/issues/events{/number}","events_url":"https://api.github.com/repos/hashicorp/vault-rails/events","assignees_url":"https://api.github.com/repos/hashicorp/vault-rails/assignees{/user}","branches_url":"https://api.github.com/repos/hashicorp/vault-rails/branches{/branch}","tags_url":"https://api.github.com/repos/hashicorp/vault-rails/tags","blobs_url":"https://api.github.com/repos/hashicorp/vault-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hashicorp/vault-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hashicorp/vault-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/hashicorp/vault-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hashicorp/vault-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/hashicorp/vault-rails/languages","stargazers_url":"https://api.github.com/repos/hashicorp/vault-rails/stargazers","contributors_url":"https://api.github.com/repos/hashicorp/vault-rails/contributors","subscribers_url":"https://api.github.com/repos/hashicorp/vault-rails/subscribers","subscription_url":"https://api.github.com/repos/hashicorp/vault-rails/subscription","commits_url":"https://api.github.com/repos/hashicorp/vault-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/hashicorp/vault-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/hashicorp/vault-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/hashicorp/vault-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/hashicorp/vault-rails/contents/{+path}","compare_url":"https://api.github.com/repos/hashicorp/vault-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hashicorp/vault-rails/merges","archive_url":"https://api.github.com/repos/hashicorp/vault-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hashicorp/vault-rails/downloads","issues_url":"https://api.github.com/repos/hashicorp/vault-rails/issues{/number}","pulls_url":"https://api.github.com/repos/hashicorp/vault-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/hashicorp/vault-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/hashicorp/vault-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hashicorp/vault-rails/labels{/name}","releases_url":"https://api.github.com/repos/hashicorp/vault-rails/releases{/id}","created_at":"2015-04-29T00:05:30Z","updated_at":"2015-05-13T16:14:01Z","pushed_at":"2015-05-14T21:26:35Z","git_url":"git://github.com/hashicorp/vault-rails.git","ssh_url":"git@github.com:hashicorp/vault-rails.git","clone_url":"https://github.com/hashicorp/vault-rails.git","svn_url":"https://github.com/hashicorp/vault-rails","homepage":null,"size":219,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hashicorp/vault-rails/pulls/4"},"html":{"href":"https://github.com/hashicorp/vault-rails/pull/4"},"issue":{"href":"https://api.github.com/repos/hashicorp/vault-rails/issues/4"},"comments":{"href":"https://api.github.com/repos/hashicorp/vault-rails/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hashicorp/vault-rails/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hashicorp/vault-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hashicorp/vault-rails/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hashicorp/vault-rails/statuses/e07841be80fc18255c4aefa1ad054def70053a54"}}}}