Permalink
Browse files

Fixed returning the mapping via Mapper#mapping

  • Loading branch information...
andrewtimberlake committed Mar 9, 2012
1 parent 309e3a1 commit 6a033d71299ba5acf45cd7879caabed141efee7b
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/map_fields/mapper.rb
  2. +1 −0 lib/map_fields/mapping.rb
View
@@ -30,7 +30,7 @@ def error!
end
def mapping
- @mapping['mapping']
+ @mapping.mapping
end
def mapped?
@@ -14,6 +14,7 @@ def initialize(mapping, fields)
hash[field_to_symbol(@fields[key])] = value
}
end
+ attr_reader :mapping
def [](index)
@mapping[index]

0 comments on commit 6a033d7

Please sign in to comment.