Sha256: dd0e9bc277bacd1df0c45dcf008a806396acaddc2994a3129c5c1499c57aa523
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
module Typescript module Rails class Railtie < ::Rails::Railtie config.before_initialize do |app| require 'typescript-rails' if ::Rails::VERSION::MAJOR >= 4 || app.config.assets.enabled require 'sprockets' require 'sprockets/engines' Sprockets.register_engine '.ts', Typescript::Rails::TypeScriptTemplate end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typescript-rails-0.3.0 | lib/typescript/rails/railtie.rb |
typescript-rails-0.2.0 | lib/typescript/rails/railtie.rb |