Sha256: 65981df8b5071132d786877c41529a54ee514dd41fdaf9ed3b4cb06646236542

Contents?: true

Size: 351 Bytes

Versions: 20

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true
require 'rails'

module Hamlit
  class Railtie < ::Rails::Railtie
    initializer :hamlit, before: :load_config_initializers do |app|
      # Load haml/plugin first to override if available
      begin
        require 'haml/plugin'
      rescue LoadError
      end
      require 'hamlit/rails_template'
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
hamlit-3.0.3-java lib/hamlit/railtie.rb
hamlit-3.0.3 lib/hamlit/railtie.rb
hamlit-3.0.2-java lib/hamlit/railtie.rb
hamlit-3.0.2 lib/hamlit/railtie.rb
hamlit-3.0.1-java lib/hamlit/railtie.rb
hamlit-3.0.1 lib/hamlit/railtie.rb
hamlit-3.0.0-java lib/hamlit/railtie.rb
hamlit-3.0.0 lib/hamlit/railtie.rb
hamlit-2.16.2-java lib/hamlit/railtie.rb
hamlit-2.16.2 lib/hamlit/railtie.rb
hamlit-2.16.1-java lib/hamlit/railtie.rb
hamlit-2.16.1 lib/hamlit/railtie.rb
hamlit-2.16.0-java lib/hamlit/railtie.rb
hamlit-2.16.0 lib/hamlit/railtie.rb
hamlit-2.15.2-java lib/hamlit/railtie.rb
hamlit-2.15.2 lib/hamlit/railtie.rb
hamlit-2.15.1-java lib/hamlit/railtie.rb
hamlit-2.15.1 lib/hamlit/railtie.rb
hamlit-2.15.0-java lib/hamlit/railtie.rb
hamlit-2.15.0 lib/hamlit/railtie.rb