{"action":"created","issue":{"url":"https://api.github.com/repos/twitter/secureheaders/issues/135","labels_url":"https://api.github.com/repos/twitter/secureheaders/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/twitter/secureheaders/issues/135/comments","events_url":"https://api.github.com/repos/twitter/secureheaders/issues/135/events","html_url":"https://github.com/twitter/secureheaders/issues/135","id":55377881,"number":135,"title":"undefined local variable or method `ensure_security_headers` when upgrading to `secure_headers 2.0.0`","user":{"login":"raphaelcm","id":929080,"avatar_url":"https://avatars.githubusercontent.com/u/929080?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcm","html_url":"https://github.com/raphaelcm","followers_url":"https://api.github.com/users/raphaelcm/followers","following_url":"https://api.github.com/users/raphaelcm/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcm/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcm/subscriptions","organizations_url":"https://api.github.com/users/raphaelcm/orgs","repos_url":"https://api.github.com/users/raphaelcm/repos","events_url":"https://api.github.com/users/raphaelcm/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-24T17:15:09Z","updated_at":"2015-01-24T17:15:55Z","closed_at":null,"body":"I've been using `secure_headers 1.2.0` in production for some time now. Recently I did a `bundle update` and started getting this error on startup:\r\n\r\n```\r\n$ rails server\r\n=> Booting WEBrick\r\n=> Rails 3.2.17 application starting in development on http://0.0.0.0:3000\r\n=> Call with -d to detach\r\n=> Ctrl-C to shutdown server\r\nExiting\r\n/Users/raphael/bonusly/special_sauce/app/controllers/application_controller.rb:19:in `<class:ApplicationController>': undefined local variable or method `ensure_security_headers' for ApplicationController:Class (NameError)\r\n\tfrom /Users/raphael/bonusly/special_sauce/app/controllers/application_controller.rb:3:in `<top (required)>'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:469:in `load'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:469:in `block in load_file'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:639:in `new_constants_in'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:468:in `load_file'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:353:in `require_or_load'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:502:in `load_missing_constant'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:192:in `block in const_missing'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:190:in `each'\r\n\tfrom /Users/raphael/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:190:in `const_missing'\r\n```\r\n\r\nIf I revert back to `secure headers 1.2.0` everything works fine. Did something change in how it's loaded?  Here's my `Gemfile` entry:\r\n\r\n`gem 'secure_headers'`"},"comment":{"url":"https://api.github.com/repos/twitter/secureheaders/issues/comments/71327660","html_url":"https://github.com/twitter/secureheaders/issues/135#issuecomment-71327660","issue_url":"https://api.github.com/repos/twitter/secureheaders/issues/135","id":71327660,"user":{"login":"raphaelcm","id":929080,"avatar_url":"https://avatars.githubusercontent.com/u/929080?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcm","html_url":"https://github.com/raphaelcm","followers_url":"https://api.github.com/users/raphaelcm/followers","following_url":"https://api.github.com/users/raphaelcm/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcm/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcm/subscriptions","organizations_url":"https://api.github.com/users/raphaelcm/orgs","repos_url":"https://api.github.com/users/raphaelcm/repos","events_url":"https://api.github.com/users/raphaelcm/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcm/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T17:15:55Z","updated_at":"2015-01-24T17:15:55Z","body":"Note, I tried: `gem 'secure_headers', require: 'secure_headers'`. No change."}}