Skip to content

Commit

Permalink
Rails 2 uses config.gem, not gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Aug 16, 2010
1 parent 35c2d05 commit c38ba9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -30,7 +30,7 @@ For more information on these commands, check out
sass --help

To install Haml and Sass in Rails 2,
just add `gem "haml"` to `config/environment.rb`.
just add `config.gem "haml"` to `config/environment.rb`.
In Rails 3, add `gem "haml"` to your Gemfile instead.
and both Haml and Sass will be installed.
Views with the `.html.haml` extension will automatically use Haml.
Expand Down
2 changes: 1 addition & 1 deletion lib/haml/exec.rb
Expand Up @@ -207,7 +207,7 @@ def set_opts(opts)
"haml --rails will no longer work in the next version of #{@name}.", "")
elsif File.exists?(env) && File.open(env) {|env| env.grep(/config\.gem/)}
puts("haml --rails isn't needed for Rails 2.1 or greater.",
"Add 'gem \"haml\"' to config/environment.rb instead.", "",
"Add 'config.gem \"haml\"' to config/environment.rb instead.", "",
"haml --rails will no longer work in the next version of #{@name}.", "")
end

Expand Down

0 comments on commit c38ba9f

Please sign in to comment.