Sha256: c9c98d58d25f577e7b2d96676f4035315c3fb4317c69159acf3067eef16d473e

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

require "voltron"

module Voltron
  module Translate
    class Railtie < Rails::Railtie
      initializer "voltron.translate.initialize" do
        ::ActionController::Base.send :include, ::Voltron::Translate
        ::ActiveRecord::Base.send :include, ::Voltron::Translate
        ::ActiveRecord::Base.send :extend, ::Voltron::Translate
        ::ActionView::Base.send :include, ::Voltron::Translate
        ::ActionMailer::Base.send :include, ::Voltron::Translate
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
voltron-translate-0.1.5 lib/voltron/translate/railtie.rb
voltron-translate-0.1.4 lib/voltron/translate/railtie.rb