Created
July 19, 2013 04:24
-
-
Save dorkrawk/6035281 to your computer and use it in GitHub Desktop.
Possible long ugly way to get a "field name" => "field value" hash from a Lawn Tent field set.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs.project.template.fields.map{ |x| fs.field_values.select{|fv| fv.field == x }.map{|fv| {x.name => fv.string_value}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment