Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing passing the mapped fields via Mapper#mapping

  • Loading branch information...
commit 9b6a4d4d234b578052021e9e2eba11769fefd565 1 parent 309e3a1
Andrew Timberlake andrewtimberlake authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  lib/map_fields/mapper.rb
  2. +1 −0  lib/map_fields/mapping.rb
2  lib/map_fields/mapper.rb
View
@@ -30,7 +30,7 @@ def error!
end
def mapping
- @mapping['mapping']
+ @mapping.mapping
end
def mapped?
1  lib/map_fields/mapping.rb
View
@@ -14,6 +14,7 @@ def initialize(mapping, fields)
hash[field_to_symbol(@fields[key])] = value
}
end
+ attr_reading :mapping
def [](index)
@mapping[index]
Please sign in to comment.
Something went wrong with that request. Please try again.