{"action":"created","issue":{"url":"https://api.github.com/repos/rollbar/rollbar-gem/issues/280","labels_url":"https://api.github.com/repos/rollbar/rollbar-gem/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/rollbar/rollbar-gem/issues/280/comments","events_url":"https://api.github.com/repos/rollbar/rollbar-gem/issues/280/events","html_url":"https://github.com/rollbar/rollbar-gem/pull/280","id":101640460,"number":280,"title":"use `instance_eval` instead of `module_eval`","user":{"login":"ctokoro","id":620884,"avatar_url":"https://avatars.githubusercontent.com/u/620884?v=3","gravatar_id":"","url":"https://api.github.com/users/ctokoro","html_url":"https://github.com/ctokoro","followers_url":"https://api.github.com/users/ctokoro/followers","following_url":"https://api.github.com/users/ctokoro/following{/other_user}","gists_url":"https://api.github.com/users/ctokoro/gists{/gist_id}","starred_url":"https://api.github.com/users/ctokoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctokoro/subscriptions","organizations_url":"https://api.github.com/users/ctokoro/orgs","repos_url":"https://api.github.com/users/ctokoro/repos","events_url":"https://api.github.com/users/ctokoro/events{/privacy}","received_events_url":"https://api.github.com/users/ctokoro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-18T12:03:44Z","updated_at":"2015-08-28T23:58:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rollbar/rollbar-gem/pulls/280","html_url":"https://github.com/rollbar/rollbar-gem/pull/280","diff_url":"https://github.com/rollbar/rollbar-gem/pull/280.diff","patch_url":"https://github.com/rollbar/rollbar-gem/pull/280.patch"},"body":"related with #273 \r\n\r\n`rails runner` execute the file with `Rails` module in rails 3.*, 4.0 and the difference with `module_eval` and `instance_eval` is context of evaling code.\r\n\r\n - module_eval\r\n     - it will execute with `eigenclass` of `self` context. inside of eval code `def` will define class method.\r\n - instance_eval\r\n     - it will execute with `class` of `self` context. inside of eval code `def` will define instance method.\r\n"},"comment":{"url":"https://api.github.com/repos/rollbar/rollbar-gem/issues/comments/135917526","html_url":"https://github.com/rollbar/rollbar-gem/pull/280#issuecomment-135917526","issue_url":"https://api.github.com/repos/rollbar/rollbar-gem/issues/280","id":135917526,"user":{"login":"brianr","id":12275,"avatar_url":"https://avatars.githubusercontent.com/u/12275?v=3","gravatar_id":"","url":"https://api.github.com/users/brianr","html_url":"https://github.com/brianr","followers_url":"https://api.github.com/users/brianr/followers","following_url":"https://api.github.com/users/brianr/following{/other_user}","gists_url":"https://api.github.com/users/brianr/gists{/gist_id}","starred_url":"https://api.github.com/users/brianr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianr/subscriptions","organizations_url":"https://api.github.com/users/brianr/orgs","repos_url":"https://api.github.com/users/brianr/repos","events_url":"https://api.github.com/users/brianr/events{/privacy}","received_events_url":"https://api.github.com/users/brianr/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T23:58:14Z","updated_at":"2015-08-28T23:58:14Z","body":"@ctokoro Do you think you'll get to this relatively soon?"}}