inline_forms 1.3.27 → 1.3.28
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.
@@ -0,0 +1,15 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
InlineForms::SPECIAL_COLUMN_TYPES[:devise_password_field]=:string
|
3
|
+
|
4
|
+
def devise_password_field_show(object, attribute)
|
5
|
+
link_to_inline_edit object, attribute, (object.send attribute.to_sym)
|
6
|
+
end
|
7
|
+
|
8
|
+
def devise_password_field_edit(object, attribute)
|
9
|
+
password_field_tag attribute, (object.send attribute.to_sym), :class => 'input_devise_password_field'
|
10
|
+
end
|
11
|
+
|
12
|
+
def devise_password_field_update(object, attribute)
|
13
|
+
object.password = params[attribute.to_sym]
|
14
|
+
end
|
15
|
+
|
@@ -2,14 +2,14 @@
|
|
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, object.send
|
5
|
+
link_to_inline_edit object, attribute, (object.send attribute.to_sym)
|
6
6
|
end
|
7
7
|
|
8
8
|
def text_field_edit(object, attribute)
|
9
|
-
text_field_tag attribute, object
|
9
|
+
text_field_tag attribute, (object.send attribute.to_sym), :class => 'input_text_field'
|
10
10
|
end
|
11
11
|
|
12
12
|
def text_field_update(object, attribute)
|
13
|
-
object
|
13
|
+
object.send :write_attribute, attribute.to_sym, params[attribute.to_sym]
|
14
14
|
end
|
15
15
|
|
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.3.
|
4
|
+
version: 1.3.28
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/app/helpers/form_elements/check_box.rb
|
163
163
|
- lib/app/helpers/form_elements/check_list.rb
|
164
164
|
- lib/app/helpers/form_elements/date.rb
|
165
|
+
- lib/app/helpers/form_elements/devise_password_field.rb
|
165
166
|
- lib/app/helpers/form_elements/dropdown.rb
|
166
167
|
- lib/app/helpers/form_elements/dropdown_with_integers.rb
|
167
168
|
- lib/app/helpers/form_elements/dropdown_with_values.rb
|