simple_form_extension 1.3.2 → 1.3.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: 267e21b5772a50e5445218c3e206b3196b4f643a
4
- data.tar.gz: a1f3ade223f2551b5331f5079f721301ec9873d0
3
+ metadata.gz: 3389e2d12e27e8e55b308cbaea48f3db0bfe92fb
4
+ data.tar.gz: 3e8cb0a226449f5ec4c204f3542d9b2432762b13
5
5
  SHA512:
6
- metadata.gz: d173d07499d9a566018acb65fe5f5347571771c28f1753cb9195c2bb10838398732a4dcf50a846c62cea3625c8a65b8022c2d4eef0e9b2a90645942a4d157375
7
- data.tar.gz: 9b14322c08e8a6e9f974de832d57cf288a8aa9826df8a924e64baad1cc6cf8f16e8dfd9823b9d2705aef5efded8c3f079de2bf003b8d731ee8dc0dee8d00f283
6
+ metadata.gz: 896d13493f069f43397c163b52376727a486b7beecb6b3473d9a5b822d2309b208631a4f344d7dbbf850fc4c399e56a4217c917f5a40a717210c44cb0796156d
7
+ data.tar.gz: 056e78f135bfa9f7dc37ed700293ca1ce49fc35bd2783187dd1a03d1e792683b49db0185b9fba995c37ed034b69136b621a83a1cd5cac749e436c7800c2e922f
@@ -110,7 +110,9 @@ module SimpleFormExtension
110
110
  end
111
111
 
112
112
  def reflection
113
- @reflection ||= object.class.reflect_on_association(attribute_name)
113
+ @reflection ||= if object.class.respond_to?(:reflect_on_association)
114
+ object.class.reflect_on_association(attribute_name)
115
+ end
114
116
  end
115
117
 
116
118
  def foreign_key
@@ -1,3 +1,3 @@
1
1
  module SimpleFormExtension
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glyph-fr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails