We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a8046 commit 3365fc9Copy full SHA for 3365fc9
lib/haml-rails.rb
@@ -47,7 +47,7 @@ class Railtie < ::Rails::Railtie
47
48
# Configure source annoatation on haml files (support for HAML was
49
# provided directly by railties 3.2..4.1 but was dropped in 4.2.
50
- if ::Rails.version.to_s >= '4.2'
+ if Gem::Requirement.new(">= 4.2").satisfied_by?(Gem::Version.new(::Rails.version))
51
initializer 'haml_rails.configure_source_annotation' do
52
SourceAnnotationExtractor::Annotation.register_extensions('haml') do |tag|
53
/\s*-#\s*(#{tag}):?\s*(.*)/
0 commit comments