Sha256: 3076abbfad4a141bbaf8599a4910a4dcb23563ba5b64873491ce1a004558365f

Contents?: true

Size: 524 Bytes

Versions: 6

Compression:

Stored size: 524 Bytes

Contents

require "phraseapp-in-context-editor-ruby"
require "i18n"

if defined? Rails
  module PhraseApp
    module InContextEditor
      class Engine < Rails::Engine
        initializer "phraseapp-in-context-editor-ruby", before: :disable_dependency_loading do |app|
          require "phraseapp-in-context-editor-ruby/adapters/i18n"
          require "phraseapp-in-context-editor-ruby/adapters/fast_gettext"

          ActionView::Base.send :include, PhraseApp::InContextEditor::ViewHelpers
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phraseapp-in-context-editor-ruby-3.2.0 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-3.1.1 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-3.1.0 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-3.0.1 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-2.1.1 lib/phraseapp-in-context-editor-ruby/engine.rb
phraseapp-in-context-editor-ruby-2.0.0 lib/phraseapp-in-context-editor-ruby/engine.rb