{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/23233195","id":23233195,"diff_hunk":"@@ -158,5 +157,11 @@ class Railtie < Rails::Railtie # :nodoc:\n       path = app.paths[\"db\"].first\n       config.watchable_files.concat [\"#{path}/schema.rb\", \"#{path}/structure.sql\"]\n     end\n+\n+    initializer \"active_record.sandbox\" do |app|\n+      ActiveSupport.on_load(:active_record) do\n+        app.config.sandbox << ActiveRecord::Base","path":"activerecord/lib/active_record/railtie.rb","position":15,"original_position":15,"commit_id":"45d25559fc96ce75d3a8c40529c7092822cc51f8","original_commit_id":"45d25559fc96ce75d3a8c40529c7092822cc51f8","user":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars.githubusercontent.com/u/47848?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"body":"You can use `self` instead of `ActiveRecord::Base`.","created_at":"2015-01-20T16:18:59Z","updated_at":"2015-01-20T16:18:59Z","html_url":"https://github.com/rails/rails/pull/18605#discussion_r23233195","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/18605","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/23233195"},"html":{"href":"https://github.com/rails/rails/pull/18605#discussion_r23233195"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/18605"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/18605","id":27643113,"html_url":"https://github.com/rails/rails/pull/18605","diff_url":"https://github.com/rails/rails/pull/18605.diff","patch_url":"https://github.com/rails/rails/pull/18605.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/18605","number":18605,"state":"open","locked":false,"title":"Change mechanics of Rails.application.sandbox","user":{"login":"brainopia","id":386,"avatar_url":"https://avatars.githubusercontent.com/u/386?v=3","gravatar_id":"","url":"https://api.github.com/users/brainopia","html_url":"https://github.com/brainopia","followers_url":"https://api.github.com/users/brainopia/followers","following_url":"https://api.github.com/users/brainopia/following{/other_user}","gists_url":"https://api.github.com/users/brainopia/gists{/gist_id}","starred_url":"https://api.github.com/users/brainopia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainopia/subscriptions","organizations_url":"https://api.github.com/users/brainopia/orgs","repos_url":"https://api.github.com/users/brainopia/repos","events_url":"https://api.github.com/users/brainopia/events{/privacy}","received_events_url":"https://api.github.com/users/brainopia/received_events","type":"User","site_admin":false},"body":"Prototype to discuss.\r\n/cc @jeremy ","created_at":"2015-01-19T23:25:48Z","updated_at":"2015-01-20T16:18:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a98fc73af775dbd81faa5bc2d572f70abfa5932b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/18605/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/18605/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rails/rails/issues/18605/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/45d25559fc96ce75d3a8c40529c7092822cc51f8","head":{"label":"brainopia:sandbox","ref":"sandbox","sha":"45d25559fc96ce75d3a8c40529c7092822cc51f8","user":{"login":"brainopia","id":386,"avatar_url":"https://avatars.githubusercontent.com/u/386?v=3","gravatar_id":"","url":"https://api.github.com/users/brainopia","html_url":"https://github.com/brainopia","followers_url":"https://api.github.com/users/brainopia/followers","following_url":"https://api.github.com/users/brainopia/following{/other_user}","gists_url":"https://api.github.com/users/brainopia/gists{/gist_id}","starred_url":"https://api.github.com/users/brainopia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainopia/subscriptions","organizations_url":"https://api.github.com/users/brainopia/orgs","repos_url":"https://api.github.com/users/brainopia/repos","events_url":"https://api.github.com/users/brainopia/events{/privacy}","received_events_url":"https://api.github.com/users/brainopia/received_events","type":"User","site_admin":false},"repo":{"id":28490135,"name":"rails","full_name":"brainopia/rails","owner":{"login":"brainopia","id":386,"avatar_url":"https://avatars.githubusercontent.com/u/386?v=3","gravatar_id":"","url":"https://api.github.com/users/brainopia","html_url":"https://github.com/brainopia","followers_url":"https://api.github.com/users/brainopia/followers","following_url":"https://api.github.com/users/brainopia/following{/other_user}","gists_url":"https://api.github.com/users/brainopia/gists{/gist_id}","starred_url":"https://api.github.com/users/brainopia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainopia/subscriptions","organizations_url":"https://api.github.com/users/brainopia/orgs","repos_url":"https://api.github.com/users/brainopia/repos","events_url":"https://api.github.com/users/brainopia/events{/privacy}","received_events_url":"https://api.github.com/users/brainopia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brainopia/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/brainopia/rails","forks_url":"https://api.github.com/repos/brainopia/rails/forks","keys_url":"https://api.github.com/repos/brainopia/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brainopia/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brainopia/rails/teams","hooks_url":"https://api.github.com/repos/brainopia/rails/hooks","issue_events_url":"https://api.github.com/repos/brainopia/rails/issues/events{/number}","events_url":"https://api.github.com/repos/brainopia/rails/events","assignees_url":"https://api.github.com/repos/brainopia/rails/assignees{/user}","branches_url":"https://api.github.com/repos/brainopia/rails/branches{/branch}","tags_url":"https://api.github.com/repos/brainopia/rails/tags","blobs_url":"https://api.github.com/repos/brainopia/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brainopia/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brainopia/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/brainopia/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brainopia/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/brainopia/rails/languages","stargazers_url":"https://api.github.com/repos/brainopia/rails/stargazers","contributors_url":"https://api.github.com/repos/brainopia/rails/contributors","subscribers_url":"https://api.github.com/repos/brainopia/rails/subscribers","subscription_url":"https://api.github.com/repos/brainopia/rails/subscription","commits_url":"https://api.github.com/repos/brainopia/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/brainopia/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/brainopia/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/brainopia/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/brainopia/rails/contents/{+path}","compare_url":"https://api.github.com/repos/brainopia/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brainopia/rails/merges","archive_url":"https://api.github.com/repos/brainopia/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brainopia/rails/downloads","issues_url":"https://api.github.com/repos/brainopia/rails/issues{/number}","pulls_url":"https://api.github.com/repos/brainopia/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/brainopia/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/brainopia/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brainopia/rails/labels{/name}","releases_url":"https://api.github.com/repos/brainopia/rails/releases{/id}","created_at":"2014-12-25T20:02:14Z","updated_at":"2015-01-20T11:44:04Z","pushed_at":"2015-01-20T11:47:41Z","git_url":"git://github.com/brainopia/rails.git","ssh_url":"git@github.com:brainopia/rails.git","clone_url":"https://github.com/brainopia/rails.git","svn_url":"https://github.com/brainopia/rails","homepage":"http://rubyonrails.org","size":126330,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rails:master","ref":"master","sha":"04d1c3716b5bfa133a0b1ed937649a0829ac5f22","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-01-20T16:15:18Z","pushed_at":"2015-01-20T12:30:46Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":378968,"stargazers_count":24643,"watchers_count":24643,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9531,"mirror_url":null,"open_issues_count":769,"forks":9531,"open_issues":769,"watchers":24643,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/18605"},"html":{"href":"https://github.com/rails/rails/pull/18605"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/18605"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/18605/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/18605/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/18605/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/45d25559fc96ce75d3a8c40529c7092822cc51f8"}}}}