inline_forms 3.0.9 → 3.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/app/helpers/form_elements/text_field.rb +1 -2
- data/lib/inline_forms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZjY4N2RhYTYzYWU1YjE0NTNmMTgxMWE1M2M3MzcxNDViNmM0NjI0YQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YTQ3MzJiZDUyNmU4Y2RjMDgxMzg2YTdhZjI5NmJlMjUzYzBlMGQ4ZA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NmM4YWEyMWRkMzAxNmEwNWQyMzc0MjcxNjI0ZjNkNWMxNzliN2NlZTBhYTRl
|
|
10
|
+
OWE2YzFjZjk0ZjViMWM2YWRiNzE1ZDc5OTZiY2Q1NWY5ODZlOTY3MzQ2ZjMw
|
|
11
|
+
MDdjMjVmYzAzOGEwODFiNWZjOTgxMzQzM2IwMmEzNTQ5MDJmM2I=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YTMwZDE4YjljYjk1NDg5YzA5N2ZiZjc5NjY3N2YzYTczNGM1MDYzNjM3ZjE3
|
|
14
|
+
MTM0OTQyYjM4ZjBhNjE5MDkwODNmNjY4N2VhYmFhOTcxNjQ0ZTkzNDdkYmEx
|
|
15
|
+
YWVlYmQ1Njk0NjQ1MGM3MDlhOTlhOWZlNzMyMDJiNGZlOGZhZWU=
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
InlineForms::SPECIAL_COLUMN_TYPES[:text_field]=:string
|
|
3
3
|
|
|
4
4
|
def text_field_show(object, attribute)
|
|
5
|
-
link_to_inline_edit object, attribute,
|
|
5
|
+
link_to_inline_edit object, attribute, object[attribute].blank? ? "<i class='fi-plus'></i>".html_safe : object[attribute]
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def text_field_edit(object, attribute)
|
|
@@ -12,4 +12,3 @@ end
|
|
|
12
12
|
def text_field_update(object, attribute)
|
|
13
13
|
object.send :write_attribute, attribute.to_sym, params[attribute.to_sym]
|
|
14
14
|
end
|
|
15
|
-
|
data/lib/inline_forms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inline_forms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ace Suares
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-09-
|
|
11
|
+
date: 2014-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rvm
|