Sha256: e0c507bb68763d5d2bb88a5c6d1aec6800086d3361b0ebf563286acba5281bf1

Contents?: true

Size: 610 Bytes

Versions: 16

Compression:

Stored size: 610 Bytes

Contents

module Jpmobile
  class Configuration
    include Singleton

    attr_accessor :form_accept_charset_conversion
    attr_accessor :smart_phone_emoticon_compatibility
    attr_accessor :fallback_view_selector

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

    def mobile_filter
      ::Jpmobile.mount_middlewares
    end

    def session_store(&block)
      @session_store = block
    end

    def mount_session_store
      @session_store && @session_store.call
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
jpmobile-6.1.0 lib/jpmobile/configuration.rb
jpmobile-6.0.0 lib/jpmobile/configuration.rb
jpmobile-5.2.5 lib/jpmobile/configuration.rb
jpmobile-6.0.0.beta lib/jpmobile/configuration.rb
jpmobile-5.2.4 lib/jpmobile/configuration.rb
jpmobile-5.0.1 lib/jpmobile/configuration.rb
jpmobile-5.1.1 lib/jpmobile/configuration.rb
jpmobile-5.2.3 lib/jpmobile/configuration.rb
jpmobile-5.2.2 lib/jpmobile/configuration.rb
jpmobile-5.2.1 lib/jpmobile/configuration.rb
jpmobile-5.2.0 lib/jpmobile/configuration.rb
jpmobile-5.1.0 lib/jpmobile/configuration.rb
jpmobile-5.0.0 lib/jpmobile/configuration.rb
jpmobile-5.0.0.beta3 lib/jpmobile/configuration.rb
jpmobile-5.0.0.beta2 lib/jpmobile/configuration.rb
jpmobile-5.0.0.beta1 lib/jpmobile/configuration.rb