{"action":"created","issue":{"url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/2","repository_url":"https://api.github.com/repos/skylightio/skylight-ruby","labels_url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/2/comments","events_url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/2/events","html_url":"https://github.com/skylightio/skylight-ruby/issues/2","id":29297316,"number":2,"title":"Cannot load rails console.","user":{"login":"adamjt","id":70330,"avatar_url":"https://avatars.githubusercontent.com/u/70330?v=3","gravatar_id":"","url":"https://api.github.com/users/adamjt","html_url":"https://github.com/adamjt","followers_url":"https://api.github.com/users/adamjt/followers","following_url":"https://api.github.com/users/adamjt/following{/other_user}","gists_url":"https://api.github.com/users/adamjt/gists{/gist_id}","starred_url":"https://api.github.com/users/adamjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamjt/subscriptions","organizations_url":"https://api.github.com/users/adamjt/orgs","repos_url":"https://api.github.com/users/adamjt/repos","events_url":"https://api.github.com/users/adamjt/events{/privacy}","received_events_url":"https://api.github.com/users/adamjt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2014-03-12T20:10:16Z","updated_at":"2016-03-18T19:58:09Z","closed_at":"2014-03-13T21:10:36Z","body":"Just installed skylight and it is running fine on our staging servers. I added the line \r\n\r\n```ruby\r\nconfig.skylight.environments << 'staging'\r\n```\r\n\r\ninside \"class Application < Rails::Application\" in config/application.rb\r\n\r\nHere is the output from `bundle exec rails c`\r\n\r\n\r\n```\r\n[SKYLIGHT] [0.3.1] The Skylight native extension wasn't found. Skylight is not running.\r\n/Users/adam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/zipruby-0.3.6/lib/zipruby.bundle: warning: already initialized constant Zip::VERSION\r\n/Users/adam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/rubyzip-0.9.9/lib/zip/constants.rb:2: warning: previous definition of VERSION was here\r\n/Users/adam/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/railties-4.0.3/lib/rails/railtie/configuration.rb:95:in `method_missing': undefined method `skylight' for #<Rails::Application::Configuration:0x007ff5c6c9a590> (NoMethodError)\r\n```"},"comment":{"url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/comments/198518605","html_url":"https://github.com/skylightio/skylight-ruby/issues/2#issuecomment-198518605","issue_url":"https://api.github.com/repos/skylightio/skylight-ruby/issues/2","id":198518605,"user":{"login":"kbullaughey","id":613650,"avatar_url":"https://avatars.githubusercontent.com/u/613650?v=3","gravatar_id":"","url":"https://api.github.com/users/kbullaughey","html_url":"https://github.com/kbullaughey","followers_url":"https://api.github.com/users/kbullaughey/followers","following_url":"https://api.github.com/users/kbullaughey/following{/other_user}","gists_url":"https://api.github.com/users/kbullaughey/gists{/gist_id}","starred_url":"https://api.github.com/users/kbullaughey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbullaughey/subscriptions","organizations_url":"https://api.github.com/users/kbullaughey/orgs","repos_url":"https://api.github.com/users/kbullaughey/repos","events_url":"https://api.github.com/users/kbullaughey/events{/privacy}","received_events_url":"https://api.github.com/users/kbullaughey/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T19:58:09Z","updated_at":"2016-03-18T19:58:09Z","body":"I ran into this issue on 0.10.3, but it was because I was using a library that requires skylight, at which point `Rails` is not defined, so the railtie doesn't load then, but then when it's required for my rails app, skylight has already been required, so again the railtie doesn't load. I fixed this by adding:\r\n\r\n    require \"skylight/railtie\"\r\n\r\nIn my `config/application.rb` file. \r\n\r\nHowever, I wonder if there's a more robust way to automatically call the railtie...or maybe I'm instrumenting my other gem wrong...."}}