inline_forms 1.0.3 → 1.0.4

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -9,6 +9,6 @@ def image_field_edit(object, attribute)
9
9
  end
10
10
 
11
11
  def image_field_update(object, attribute)
12
- object.send(attribute + '=', params[attribute.to_sym])
12
+ object.send(attribute.to_s + '=', params[attribute.to_sym])
13
13
  end
14
14
 
@@ -9,6 +9,6 @@ def text_field_edit(object, attribute)
9
9
  end
10
10
 
11
11
  def text_field_update(object, attribute)
12
- object.send(attribute + '=', params[attribute.to_sym])
12
+ object[attribute.to_s.to_sym] = params[attribute.to_sym]
13
13
  end
14
14
 
data/inline_forms.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{inline_forms}
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ace Suares"]
12
- s.date = %q{2011-10-07}
12
+ s.date = %q{2011-10-12}
13
13
  s.description = %q{Inline Forms aims to ease the setup of forms that provide inline editing. The field list can be specified in the model.}
14
14
  s.email = %q{ace@suares.an}
15
15
  s.extra_rdoc_files = [
@@ -64,7 +64,6 @@ Gem::Specification.new do |s|
64
64
  "app/helpers/form_elements/dropdown_with_values.rb",
65
65
  "app/helpers/form_elements/file_field.rb",
66
66
  "app/helpers/form_elements/geo_code_curacao.rb",
67
- "app/helpers/form_elements/image.rb",
68
67
  "app/helpers/form_elements/image_field.rb",
69
68
  "app/helpers/form_elements/info.rb",
70
69
  "app/helpers/form_elements/infoadmin.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ace Suares
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-07 00:00:00 -04:00
18
+ date: 2011-10-12 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -163,7 +163,6 @@ files:
163
163
  - app/helpers/form_elements/dropdown_with_values.rb
164
164
  - app/helpers/form_elements/file_field.rb
165
165
  - app/helpers/form_elements/geo_code_curacao.rb
166
- - app/helpers/form_elements/image.rb
167
166
  - app/helpers/form_elements/image_field.rb
168
167
  - app/helpers/form_elements/info.rb
169
168
  - app/helpers/form_elements/infoadmin.rb
@@ -1,14 +0,0 @@
1
- InlineForms::SPECIAL_COLUMN_TYPES[:image]=:image
2
-
3
- # image via paperclip
4
- def image_show(object, attribute)
5
- link_to_inline_image_edit object, attribute
6
- end
7
-
8
- def image_edit(object, attribute)
9
- file_attribute object.class.to_s.underscore, attribute
10
- end
11
-
12
- def image_update(object, attribute)
13
- object.send(attribute+'=',values)
14
- end