tml 5.5.2 → 5.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 067d6c379b9fa534efe1d4976a661e944be70b32
4
- data.tar.gz: 1e8fda1be403bd5c23ed4dbb7db013540b8ff92b
3
+ metadata.gz: e4de2f5184318d3d0719cfe5de0495ab6e91e9f1
4
+ data.tar.gz: bf574f2c89a6a5d7b4da3c5e2e54eaa4fe0af6b1
5
5
  SHA512:
6
- metadata.gz: 5cec2539d2c255bfefdbad7b7c61504e7592fef50a842d14e61055625d9feabcf894d345227e2949d5b2c0efef6411d9e5c03bd41516e937164dbc5f25a111dc
7
- data.tar.gz: 60b3cd035e5018c58b1af4896c3087c1cf249cb0c68c2b7a4b635426b4342cfc4b632a41d579a49bdf94747543cb230e3c7504d585d85a81423ba7297478e30e
6
+ metadata.gz: c81dca25c0ca6304bf7f3a21eca7fba9c27715e47426d21e66bb4a06b5b8794825fe1d931ff29e0763f132374870675af24569702639244381fbe4bac2afe34f
7
+ data.tar.gz: 3f6dfccc814f762f526759a5291090e02bef34a86d8f47401d5ffbbcedfc7963d7f23d847d6731992c158798894c67559facf5d1dc25d113d161b98e963e70ba
@@ -142,6 +142,11 @@ class Tml::Application < Tml::Base
142
142
  @locales ||= languages.collect{|lang| lang.locale}
143
143
  end
144
144
 
145
+ # Application or configuration default locale
146
+ def default_locale
147
+ self.attributes[:default_locale] || Tml.config.default_locale
148
+ end
149
+
145
150
  # Returns supported locale or fallback locale
146
151
  def supported_locale(locale)
147
152
  return default_locale if locale.to_s == ''
@@ -31,7 +31,7 @@
31
31
  #++
32
32
 
33
33
  module Tml
34
- VERSION = '5.5.2'
34
+ VERSION = '5.5.3'
35
35
 
36
36
  def self.full_version
37
37
  "tml-ruby v#{Tml::VERSION} (Faraday v#{Faraday::VERSION})"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tml
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.5.2
4
+ version: 5.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Berkovich