acts_as_seo_friendly 0.2.0 → 0.2.1

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: 0d161407a9f604dd4d80e809dcc3a9366f8e207b
4
- data.tar.gz: f6dfb24617288ed11d40e1428958a3d4d03cd959
3
+ metadata.gz: 5fc26f38e55df1ef7ab8d4460da7a704d5d04dce
4
+ data.tar.gz: a36e8d0dd5c248f669a0bd91581edecb7be1cd20
5
5
  SHA512:
6
- metadata.gz: 544283081b105e026465b9006f11d3646b904dd89562e47cc4b17bafa9cd05ef0981c9082ed7ee73d9a1f1aa3fa8504fa5c092471b9471d9d0b9a0c25986591b
7
- data.tar.gz: a391d850ef0d825c87f1b074d55ee8500ed06841174fcdd6cf8705fdf9b1db1d8a0705720d51c81d8e038d3d820d4e0b50ce3cbed35e204f44c44d2d1da9f5bc
6
+ metadata.gz: 2591be8f79ea1b41e6fc3ab8eb24e4690671aa6993d0db551371a2c593587cda7815a41e37c29e608292103adad4612e2ee1640276b09fbf6b41756d1d461c68
7
+ data.tar.gz: 63164e9fdc024706e652d94bb6775c78f8fb6198f0f9b84816c2921a17cd136bf36c4d825997b7f3f9947d65438a3beeceb3b243e63ea788624f204a6463d008
@@ -4,7 +4,7 @@ module ActsAsSeoFriendly
4
4
  ActsAsSeoFriendly::Datable::Core::SEO_ATTRIBUTES.each do |seo_attr|
5
5
  define_method(seo_attr) do
6
6
  if seo_datum && seo_datum.persisted?
7
- seo_datum.public_send(seo_attr)
7
+ seo_datum.public_send(seo_attr).presence || public_send("dynamic_#{seo_attr}")
8
8
  else
9
9
  public_send("dynamic_#{seo_attr}")
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module ActsAsSeoFriendly
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_seo_friendly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timur Khafizov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-29 00:00:00.000000000 Z
11
+ date: 2015-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.2.2
94
+ rubygems_version: 2.4.5
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Summary of ActsAsSeoFriendly.