localizable_model 0.5.4 → 0.5.5

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: b5b03573fb114497785bf905f2a22ca8f2cea397
4
- data.tar.gz: 7f1064b119b227e953fd8ef5d56c15d62eb8e4ba
3
+ metadata.gz: 17671afe71bebccadf1ed44e9739a29370b8a262
4
+ data.tar.gz: 2535f6374e8f747d5c89c417c7c5dd26eb039c2f
5
5
  SHA512:
6
- metadata.gz: dff396da997e00911cfd30eb8067d1d644bbf582eb848b39aeea26a3c9f1a9e0d2e8e3a516cf8b0300072714806bd37f4be9a168037546c304a06aaf10209fd5
7
- data.tar.gz: cf9c2dec28a8bea8a462175440eafb06a2827661f3ae47618903ab3e2402db038f62d583e2e2932f15cf208f5995f6205edadb7396ea052c69d01a5576d33732
6
+ metadata.gz: 1b852c3e37f9403fb2add58ec2d79f0741a538fce3cbade925847e5fc1f07d3deeaf4f5411a34a91d727099b5cf0c4e4f33b3730fbb05bf9db051343b79c3fb5
7
+ data.tar.gz: ab44351ae8d0f5e9767000b30b654161af31b3c5972d20164001a61ee040f508da6da844dbcd48aa584b386109be71203f76a9b1ee171bd527cde73e5335b5e0
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  class Localization < ActiveRecord::Base
4
- belongs_to :localizable, polymorphic: true
4
+ belongs_to :localizable, polymorphic: true, optional: true
5
5
 
6
6
  class << self
7
7
  def locales
@@ -29,7 +29,6 @@ module LocalizableModel
29
29
 
30
30
  def get(attribute, options = {})
31
31
  get_options = { locale: locale }.merge(options)
32
-
33
32
  find_localizations(
34
33
  attribute.to_s,
35
34
  get_options[:locale].to_s
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module LocalizableModel
4
- VERSION = "0.5.4".freeze unless LocalizableModel.const_defined?("VERSION")
4
+ VERSION = "0.5.5".freeze unless LocalizableModel.const_defined?("VERSION")
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localizable_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 4.5.0
61
+ version: 4.8.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 4.5.0
68
+ version: 4.8.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: shoulda-matchers
71
71
  requirement: !ruby/object:Gem::Requirement