Sha256: 5124dc21106d68549b77e41be325a688a10e7358deef5a6b1a2ad23d2bab6e5b

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

require File.join(File.dirname(__FILE__), 'action_view_extension')
module I18nline
  class Railtie < Rails::Railtie
    initializer "i18nline.configure_rails_initialization" do |app|
      app.config.assets.precompile += %w(i18nline_to_host.js i18nline_to_host.css)
      ActiveSupport.on_load(:action_view) do
        ::ActionView::Base.send :include, I18nline::ActionViewExtension
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
i18nline-0.0.15.alpha lib/i18nline/railtie.rb
i18nline-0.0.14.alpha lib/i18nline/railtie.rb
i18nline-0.0.12.alpha lib/i18nline/railtie.rb