splendeo-dependent_select 0.6.1 → 0.6.2
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/lib/dependent_select/form_helpers.rb +2 -2
- metadata +2 -3
@@ -418,14 +418,14 @@ module DependentSelect::FormHelpers
|
|
418
418
|
# it returns the value of that item
|
419
419
|
# * If +extra_options+ has an item with key +:filter_field+,
|
420
420
|
# it uses its value instead of +method+
|
421
|
-
def dependent_select_calculate_observed_field_id(object_name,
|
421
|
+
def dependent_select_calculate_observed_field_id(object_name, method, extra_options)
|
422
422
|
if extra_options.has_key? :complete_filter_field
|
423
423
|
return extra_options[:complete_filter_field]
|
424
424
|
elsif extra_options.has_key? :filter_field
|
425
425
|
method = extra_options[:filter_field]
|
426
426
|
end
|
427
427
|
|
428
|
-
dependent_select_calculate_id(object_name,
|
428
|
+
dependent_select_calculate_id(object_name, method)
|
429
429
|
end
|
430
430
|
|
431
431
|
# calculates one id. Usually it just concatenates object_method, ie 'employee_city_id'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splendeo-dependent_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Enrique Garcia Cota (egarcia)
|
@@ -31,7 +31,6 @@ files:
|
|
31
31
|
- README.rdoc
|
32
32
|
has_rdoc: true
|
33
33
|
homepage: http://github.com/splendeo/dependent_select
|
34
|
-
licenses:
|
35
34
|
post_install_message:
|
36
35
|
rdoc_options:
|
37
36
|
- --charset=UTF-8
|
@@ -52,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
51
|
requirements: []
|
53
52
|
|
54
53
|
rubyforge_project:
|
55
|
-
rubygems_version: 1.
|
54
|
+
rubygems_version: 1.2.0
|
56
55
|
signing_key:
|
57
56
|
specification_version: 2
|
58
57
|
summary: generates a select with some js code that updates if if another field is modified.
|