Sha256: 55394adc94814ea748589d47b2006a038e5e3ad4641581163e880ec482a5feb2

Contents?: true

Size: 330 Bytes

Versions: 10

Compression:

Stored size: 330 Bytes

Contents

# frozen_string_literal: true

require 'rails'

module ChinaRegions
  if ::Rails.version > '3.1'
    class Engine < ::Rails::Engine; end
  else
    class Railtie < ::Rails::Railtie
      ActiveSupport.on_load(:action_view) do
        ::ActionView::Base.send :include, ChinaRegions::Helpers::FormHelper
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
china_regions-1.0.8 lib/china_regions/engine.rb
china_regions-1.0.7 lib/china_regions/engine.rb
china_regions-1.0.5 lib/china_regions/engine.rb
china_regions-1.0.4 lib/china_regions/engine.rb
china_regions-1.0.3 lib/china_regions/engine.rb
china_regions-1.0.2 lib/china_regions/engine.rb
china_regions-1.0.1 lib/china_regions/engine.rb
china_regions-1.0.0 lib/china_regions/engine.rb
china_regions-0.4.5 lib/china_regions/engine.rb
china_regions-0.4.4 lib/china_regions/engine.rb