inline_forms 1.6.4 → 1.6.5

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[:money_field]=:integer
3
+
4
+ def money_field_show(object, attribute)
5
+ link_to_inline_edit object, attribute.to_sym, humanized_money_with_symbol(object.send attribute.to_sym)
6
+ end
7
+
8
+ def money_field_edit(object, attribute)
9
+ text_field_tag attribute, (object.send attribute), :class => 'input_money_field'
10
+ end
11
+
12
+ def money_field_update(object, attribute)
13
+ object.send(attribute + "=", params[attribute])
14
+ end
15
+
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.6.4"
3
+ VERSION = "1.6.5"
4
4
  end
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.6.4
4
+ version: 1.6.5
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-10-31 00:00:00.000000000 Z
12
+ date: 2012-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm
@@ -235,6 +235,7 @@ files:
235
235
  - lib/app/helpers/form_elements/header.rb
236
236
  - lib/app/helpers/form_elements/image_field.rb
237
237
  - lib/app/helpers/form_elements/info.rb
238
+ - lib/app/helpers/form_elements/money_field.rb
238
239
  - lib/app/helpers/form_elements/plain_text_area.rb
239
240
  - lib/app/helpers/form_elements/question_list.rb
240
241
  - lib/app/helpers/form_elements/radio_button.rb