Sha256: 19b42340b70cd94940f684940efb1a2c1aa7994440f482664e46831c8cc540b6

Contents?: true

Size: 573 Bytes

Versions: 3

Compression:

Stored size: 573 Bytes

Contents

module Voltron
  module Translate
    class Engine < Rails::Engine

      isolate_namespace Voltron

      initializer 'voltron.translate.initialize' do
        ::ActionController::Base.send :include, ::Voltron::Translate
        ::ActiveRecord::Base.send :include, ::Voltron::Translate
        ::ActiveRecord::Base.send :extend, ::Voltron::Translate
        ::ActiveRecord::Base.send :extend, ::Voltron::Translatable
        ::ActionView::Base.send :include, ::Voltron::Translate
        ::ActionMailer::Base.send :include, ::Voltron::Translate
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
voltron-translate-0.2.1 lib/voltron/translate/engine.rb
voltron-translate-0.2.0 lib/voltron/translate/engine.rb
voltron-translate-0.2.2 lib/voltron/translate/engine.rb