Sha256: 442ee7389bd7cf5644c82f6d4eb30a1ba7a5a8dd07b8bd5a7787649e644432ca
Contents?: true
Size: 603 Bytes
Versions: 4
Compression:
Stored size: 603 Bytes
Contents
require 'rails/engine' require 'rails/generators' require 'coffee/rails/js_hook' module Coffee module Rails class Engine < ::Rails::Engine config.app_generators.javascript_engine :coffee if config.respond_to?(:annotations) config.annotations.register_extensions("coffee") { |annotation| /#\s*(#{annotation}):?\s*(.*)$/ } end initializer 'override js_template hook' do |app| if app.config.generators.rails[:javascript_engine] == :coffee ::Rails::Generators::NamedBase.send :include, Coffee::Rails::JsHook end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems