{"action":"created","issue":{"url":"https://api.github.com/repos/haml/haml/issues/695","repository_url":"https://api.github.com/repos/haml/haml","labels_url":"https://api.github.com/repos/haml/haml/issues/695/labels{/name}","comments_url":"https://api.github.com/repos/haml/haml/issues/695/comments","events_url":"https://api.github.com/repos/haml/haml/issues/695/events","html_url":"https://github.com/haml/haml/issues/695","id":16044027,"number":695,"title":"uninitialized constant Haml::ActionView with 4.0.3","user":{"login":"dpogue","id":241708,"avatar_url":"https://avatars.githubusercontent.com/u/241708?v=3","gravatar_id":"","url":"https://api.github.com/users/dpogue","html_url":"https://github.com/dpogue","followers_url":"https://api.github.com/users/dpogue/followers","following_url":"https://api.github.com/users/dpogue/following{/other_user}","gists_url":"https://api.github.com/users/dpogue/gists{/gist_id}","starred_url":"https://api.github.com/users/dpogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpogue/subscriptions","organizations_url":"https://api.github.com/users/dpogue/orgs","repos_url":"https://api.github.com/users/dpogue/repos","events_url":"https://api.github.com/users/dpogue/events{/privacy}","received_events_url":"https://api.github.com/users/dpogue/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2013-06-26T16:57:57Z","updated_at":"2016-07-29T12:46:54Z","closed_at":"2015-06-08T15:06:18Z","body":"I would get this error when trying to run spec tests in my Rails engine using Haml 4.0.3:\r\n\r\n```bash\r\n$ bundle exec rake spec\r\nrake aborted!\r\nuninitialized constant Haml::ActionView\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/haml-4.0.3/lib/haml/helpers/safe_erubis_template.rb:3:in `<module:Haml>'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/haml-4.0.3/lib/haml/helpers/safe_erubis_template.rb:1:in `<top (required)>'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/haml-4.0.3/lib/haml/railtie.rb:21:in `require'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/haml-4.0.3/lib/haml/railtie.rb:21:in `<top (required)>'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/haml-4.0.3/lib/haml.rb:23:in `require'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/haml-4.0.3/lib/haml.rb:23:in `<top (required)>'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'\r\n/Users/dpogue/.rvm/gems/ruby-1.9.3-p429@mygem/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'\r\n/Users/dpogue/workspace/Rakefile:8:in `<top (required)>'\r\n```\r\n\r\nMy Gemfile contains the following:\r\n\r\n```ruby\r\ngem 'rails', '~> 3.2.12'\r\n\r\ngem 'haml'\r\ngem 'haml-rails'\r\n```\r\n\r\nI was able to fix this error by adding `require 'action_view'` to lib/haml/helpers/safe_erubis_template.rb, but I don't know whether that's the correct fix or whether I'm missing a dependency somewhere."},"comment":{"url":"https://api.github.com/repos/haml/haml/issues/comments/236171096","html_url":"https://github.com/haml/haml/issues/695#issuecomment-236171096","issue_url":"https://api.github.com/repos/haml/haml/issues/695","id":236171096,"user":{"login":"cema-sp","id":3078174,"avatar_url":"https://avatars.githubusercontent.com/u/3078174?v=3","gravatar_id":"","url":"https://api.github.com/users/cema-sp","html_url":"https://github.com/cema-sp","followers_url":"https://api.github.com/users/cema-sp/followers","following_url":"https://api.github.com/users/cema-sp/following{/other_user}","gists_url":"https://api.github.com/users/cema-sp/gists{/gist_id}","starred_url":"https://api.github.com/users/cema-sp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cema-sp/subscriptions","organizations_url":"https://api.github.com/users/cema-sp/orgs","repos_url":"https://api.github.com/users/cema-sp/repos","events_url":"https://api.github.com/users/cema-sp/events{/privacy}","received_events_url":"https://api.github.com/users/cema-sp/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T12:46:54Z","updated_at":"2016-07-29T12:46:54Z","body":"Please add that fix to stable version"}}
{"actor":{"display_login":"cema-sp"}}