symbolize 3.0.1 → 3.0.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/VERSION +1 -1
- data/lib/symbolize.rb +1 -1
- data/lib/symbolize_helper.rb +2 -2
- data/symbolize.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.2
|
data/lib/symbolize.rb
CHANGED
|
@@ -68,7 +68,7 @@ module Symbolize
|
|
|
68
68
|
attr_names.each do |attr_name|
|
|
69
69
|
attr_name = attr_name.to_s
|
|
70
70
|
const = "#{attr_name}_values"
|
|
71
|
-
if enum.
|
|
71
|
+
if enum.is_a?(Hash)
|
|
72
72
|
values = enum
|
|
73
73
|
else
|
|
74
74
|
values = hsh[*enum.map { |v| [v, (configuration[:capitalize] ? v.to_s.capitalize : v.to_s)] }.flatten]
|
data/lib/symbolize_helper.rb
CHANGED
|
@@ -17,11 +17,11 @@ module ActionView
|
|
|
17
17
|
|
|
18
18
|
class FormBuilder
|
|
19
19
|
def select_sym(method, choices = nil, options = {}, html_options = {})
|
|
20
|
-
@template.select_sym(@object_name, method, choices, options, html_options)
|
|
20
|
+
@template.select_sym(@object_name, method, choices, objectify_options(options), html_options)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def radio_sym(method, choices = nil, options = {})
|
|
24
|
-
@template.radio_sym(@object_name, method, choices, options)
|
|
24
|
+
@template.radio_sym(@object_name, method, choices, objectify_options(options))
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
|
data/symbolize.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{symbolize}
|
|
8
|
-
s.version = "3.0.
|
|
8
|
+
s.version = "3.0.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Marcos Piccinini"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-09-08}
|
|
13
13
|
s.description = %q{ActiveRecord enums with i18n}
|
|
14
14
|
s.email = %q{x@nofxx.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 3
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 3.0.
|
|
8
|
+
- 2
|
|
9
|
+
version: 3.0.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Marcos Piccinini
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-
|
|
17
|
+
date: 2010-09-08 00:00:00 -03:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|