Sha256: 41cf3fdafddaa8c02f692389bc5f88bd2d08c5ff07197e7723caa308b9cd49a6
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 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 += ["copyray.js", "copyray.css"] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
copy_tuner_client-0.12.0 | lib/copy_tuner_client/engine.rb |
copy_tuner_client-0.11.0 | lib/copy_tuner_client/engine.rb |