Module: Jpmobile::Rack

Defined in:
lib/jpmobile.rb,
lib/jpmobile/rack.rb,
lib/jpmobile/rack/filter.rb,
lib/jpmobile/rack/params_filter.rb,
lib/jpmobile/rack/mobile_carrier.rb

Defined Under Namespace

Classes: Filter, MobileCarrier, ParamsFilter

Class Method Summary (collapse)

Class Method Details

+ (Object) mount_middlewares



8
9
10
11
12
# File 'lib/jpmobile/rack.rb', line 8

def mount_middlewares
  # 漢字コード・絵文字フィルター
  ::Rails.application.middleware.insert_before('ActionDispatch::ParamsParser', Jpmobile::Rack::ParamsFilter)
  ::Rails.application.middleware.insert_before('ActionDispatch::ParamsParser', Jpmobile::Rack::Filter)
end