Sha256: 8868777c21726435c7a9e2ff851383da4818ceb8ea48139e41a0e8b58eb7e64c

Contents?: true

Size: 567 Bytes

Versions: 4

Compression:

Stored size: 567 Bytes

Contents

# Monkeypatch bugfix for gem TemplateInheritance v0.3.1
# Without this patch the line 10 in template-inheritance/exts/tilt.rb
#   klass.send(:remove_method, :initialize_engine)
# raises error during initialization because Tilt 2.0.0 have no method Tilt::HamlTemplate.initialize_engine
# Correct syntax in tilt.rb should be:
#   klass.send(:remove_method, :initialize_engine) if klass.respond_to?(:initialize_engine)
module Tilt
  class HamlTemplate
    unless self.respond_to?(:initialize_engine)
      def initialize_engine
      end
    end
  end
end
# End of patch

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alfa-0.0.8.pre lib/template-inheritance/alfa_bugfix.rb
alfa-0.0.7.pre lib/template-inheritance/alfa_bugfix.rb
alfa-0.0.6.pre lib/template-inheritance/alfa_bugfix.rb
alfa-0.0.5.pre lib/template-inheritance/alfa_bugfix.rb