mimeo 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mimeo.rb +5 -1
- data/lib/mimeo/version.rb +1 -1
- metadata +2 -2
data/lib/mimeo.rb
CHANGED
@@ -66,7 +66,11 @@ module Mimeo
|
|
66
66
|
def populate(record)
|
67
67
|
if field_map
|
68
68
|
field_map.each do |ohm_field, rails_field|
|
69
|
-
|
69
|
+
if rails_field.is_a? Symbol
|
70
|
+
val = self.send(rails_field)
|
71
|
+
else
|
72
|
+
val = rails_field
|
73
|
+
end
|
70
74
|
record.send("#{ohm_field}=", val)
|
71
75
|
end
|
72
76
|
else
|
data/lib/mimeo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mimeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
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-09-
|
12
|
+
date: 2012-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ActiveRecord extension for saving data to Redis using a given Ohm model.
|
15
15
|
email:
|