mm-multi-parameter-attributes 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/mm-multi-parameter-attributes.rb +2 -2
- metadata +4 -4
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ spec = Gem::Specification.new do |s|
|
|
21
21
|
|
22
22
|
# Change these as appropriate
|
23
23
|
s.name = "mm-multi-parameter-attributes"
|
24
|
-
s.version = "0.1.
|
24
|
+
s.version = "0.1.1"
|
25
25
|
s.summary = "Tiny plugin for MongoMapper to add multi-parameter attributes"
|
26
26
|
s.author = "Richard Livsey"
|
27
27
|
s.email = "richard@livsey.org"
|
@@ -15,8 +15,8 @@ module MongoMapper
|
|
15
15
|
normal_attributes = {}
|
16
16
|
|
17
17
|
new_attributes.each do |k, v|
|
18
|
-
if k.include?("(")
|
19
|
-
multi_parameter_attributes << [ k, v ]
|
18
|
+
if k.to_s.include?("(")
|
19
|
+
multi_parameter_attributes << [ k.to_s, v ]
|
20
20
|
else
|
21
21
|
normal_attributes[k] = v
|
22
22
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mm-multi-parameter-attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Richard Livsey
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-06-
|
18
|
+
date: 2010-06-26 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|