mimeo 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mimeo.rb +5 -1
  2. data/lib/mimeo/version.rb +1 -1
  3. metadata +2 -2
@@ -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
- val = self.send(rails_field)
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
@@ -1,3 +1,3 @@
1
1
  module Mimeo
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
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.15
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-25 00:00:00.000000000 Z
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: