Sha256: cc1122f11d556b4ad4603915597f5cb417d366f87c537729e524fac3c341a968

Contents?: true

Size: 522 Bytes

Versions: 27

Compression:

Stored size: 522 Bytes

Contents

class Lalala::ExtI18n::TestNegotiationAdapter < Lalala::ExtI18n::NegotiationAdapter

  def initialize(default_locale, available_locales)
    @default_locale    = default_locale
    @available_locales = available_locales.values.flatten.compact.uniq
    @domain_locales    = available_locales
  end

  def default_locale
    @default_locale
  end

  def available_locales
    @available_locales
  end

  def locales_for_hostname(hostname)
    @domain_locales[hostname]
  end

  def allow_accept_language
    true
  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
lalala-4.1.0.dev.425 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.420 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.419 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.418 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.417 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.0.0.dev.416 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.415 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.414 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.413 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.412 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.411 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.410 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.409 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.0.0.dev.407 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.408 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.398 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.397 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.0.0.dev.396 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.0.0.dev.395 lib/lalala/ext_i18n/test_negotiation_adapter.rb
lalala-4.1.0.dev.394 lib/lalala/ext_i18n/test_negotiation_adapter.rb