inline_forms 1.5.9 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ InlineForms::SPECIAL_COLUMN_TYPES[:geo_code_curacao]=:string
|
|
3
3
|
|
4
4
|
# geo_code_curacao
|
5
5
|
def geo_code_curacao_show(object, attribute)
|
6
|
-
attribute_value = object.send(attribute).presentation rescue nil
|
6
|
+
attribute_value = GeoCodeCuracao.new(object.send(attribute)).presentation rescue nil
|
7
7
|
link_to_inline_edit object, attribute, attribute_value
|
8
8
|
end
|
9
9
|
def geo_code_curacao_edit(object, attribute)
|
@@ -19,7 +19,7 @@ end
|
|
19
19
|
|
20
20
|
def geo_code_curacao_update(object, attribute)
|
21
21
|
# extract the geocode
|
22
|
-
geo_code = params[attribute].scan(/\d\d\d\d\d\d/).
|
22
|
+
geo_code = params[attribute].scan(/\d\d\d\d\d\d/).first || nil
|
23
23
|
object[attribute.to_sym] = GeoCodeCuracao.new(geo_code).valid? ? geo_code : nil
|
24
24
|
end
|
25
25
|
|
data/lib/inline_forms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rvm
|