Sha256: 5c0b33d6567317bfa5213235f9179642ce8a921f361bfcf833704e0a6d56126b
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
require 'copy_tuner_client/copyray' require 'copy_tuner_client/translation_log' require 'copy_tuner_client/helper_extension' module CopyTunerClient # Connects to integration points for Rails 3 applications class Engine < ::Rails::Engine initializer :initialize_copy_tuner_rails, :before => :load_config_initializers do |app| CopyTunerClient::Rails.initialize end initializer :initialize_copy_tuner_hook_methods, :after => :load_config_initializers do |app| ActiveSupport.on_load(:action_view) do CopyTunerClient::HelperExtension.hook_translation_helper( ActionView::Helpers::TranslationHelper, middleware_enabled: CopyTunerClient.configuration.enable_middleware? ) end if CopyTunerClient.configuration.enable_middleware? CopyTunerClient::TranslationLog.install_hook end require 'copy_tuner_client/simple_form_extention' end initializer "copy_tuner.assets.precompile", group: :all do |app| app.config.assets.precompile += ['main.js', 'style.css'] end end end
Version data entries
4 entries across 4 versions & 1 rubygems