Sha256: 5c96c5ec8c6f2a4dbf1f54478b7f4fbd7f6531c59e8ab8477a102931a5c7aaa9

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

require 'typescript/rails'

class Typescript::Rails::Railtie < ::Rails::Railtie
  config.before_initialize do |app|
    if ::Rails::VERSION::MAJOR >= 4 || app.config.assets.enabled
      require 'typescript/rails/template'
      require 'sprockets'
      Sprockets.register_engine '.ts', Typescript::Rails::Template
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typescript-rails-0.6.2 lib/typescript/rails/railtie.rb
typescript-rails-0.6.1 lib/typescript/rails/railtie.rb
typescript-rails-0.6.0 lib/typescript/rails/railtie.rb