Class: Jpmobile::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/jpmobile/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration


9
10
11
12
13
# File 'lib/jpmobile/configuration.rb', line 9

def initialize
  @form_accept_charset_conversion     = false
  @smart_phone_emoticon_compatibility = false
  @fallback_view_selector             = false
end

Instance Attribute Details

#fallback_view_selectorObject

Returns the value of attribute fallback_view_selector


7
8
9
# File 'lib/jpmobile/configuration.rb', line 7

def fallback_view_selector
  @fallback_view_selector
end

#form_accept_charset_conversionObject

Returns the value of attribute form_accept_charset_conversion


5
6
7
# File 'lib/jpmobile/configuration.rb', line 5

def form_accept_charset_conversion
  @form_accept_charset_conversion
end

#smart_phone_emoticon_compatibilityObject

Returns the value of attribute smart_phone_emoticon_compatibility


6
7
8
# File 'lib/jpmobile/configuration.rb', line 6

def smart_phone_emoticon_compatibility
  @smart_phone_emoticon_compatibility
end

Instance Method Details

#mobile_filterObject


15
16
17
# File 'lib/jpmobile/configuration.rb', line 15

def mobile_filter
  ::Jpmobile.mount_middlewares
end

#mount_session_storeObject


23
24
25
# File 'lib/jpmobile/configuration.rb', line 23

def mount_session_store
  @session_store && @session_store.call
end

#session_store(&block) ⇒ Object


19
20
21
# File 'lib/jpmobile/configuration.rb', line 19

def session_store(&block)
  @session_store = block
end