mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Added support for HAML 3+.
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
3d1a04fd83
commit
42d06a241b
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class DeviseViewsGenerator < Rails::Generators::Base
|
|||
end
|
||||
|
||||
def verify_haml_version
|
||||
unless Haml.version[:major] >= 2 and Haml.version[:minor] >= 3
|
||||
unless Haml.version[:major] == 2 and Haml.version[:minor] >= 3 or Haml.version[:major] >= 3
|
||||
say "To generate HAML templates, you need to install HAML 2.3 or above."
|
||||
exit
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue