Module: Jpmobile

Defined in:
lib/jpmobile/email.rb,
lib/jpmobile.rb,
lib/jpmobile/util.rb,
lib/jpmobile/rails.rb,
lib/jpmobile/mailer.rb,
lib/jpmobile/filter.rb,
lib/jpmobile/helpers.rb,
lib/jpmobile/version.rb,
lib/jpmobile/sinatra.rb,
lib/jpmobile/encoding.rb,
lib/jpmobile/position.rb,
lib/jpmobile/path_set.rb,
lib/jpmobile/emoticon.rb,
lib/jpmobile/resolver.rb,
lib/jpmobile/trans_sid.rb,
lib/jpmobile/rack/filter.rb,
lib/jpmobile/configuration.rb,
lib/jpmobile/emoticon/z_combine.rb,
lib/jpmobile/rack/params_filter.rb,
lib/jpmobile/rack/mobile_carrier.rb,
lib/jpmobile/request_with_mobile.rb,
lib/jpmobile/fallback_view_selector.rb

Overview

jpmobile の各機能を提供するモジュール envメソッドが実装されている必要がある。

Defined Under Namespace

Modules: DocomoGuid, Emoticon, Encoding, FallbackViewSelector, Helpers, Mailer, Mobile, ParamsOverCookie, RequestWithMobile, RequestWithMobileTesting, SessionID, Sinatra, TransSid, TransSidRedirecting, Util, ViewSelector Classes: Configuration, Email, Filter, HankakuFilter, MobileCarrier, ParamsFilter, PathSet, Position, Resolver

Constant Summary collapse

VERSION =
"5.0.0.beta1"

Class Method Summary collapse

Class Method Details

.configObject


72
73
74
# File 'lib/jpmobile.rb', line 72

def config
  ::Jpmobile::Configuration.instance
end

.mount_middlewaresObject


76
77
78
79
80
# File 'lib/jpmobile.rb', line 76

def mount_middlewares
  # 漢字コード・絵文字フィルター
  ::Rails.application.middleware.insert_after ::Jpmobile::MobileCarrier, ::Jpmobile::ParamsFilter
  ::Rails.application.middleware.insert_after ::Jpmobile::ParamsFilter,  ::Jpmobile::Filter
end