Skip to content

Commit

Permalink
Merge pull request #8 from JakeAustwick/patch-1
Browse files Browse the repository at this point in the history
Fix rails 4 incompatibility (fixes #7)
  • Loading branch information
ajb committed Nov 18, 2014
2 parents de7c62e + 68bf509 commit e389b7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/formbuilder/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def value_present?(response_field)
end

def response_value(response_field)
value = get_responses[response_field.id.to_s]
r = get_responses || {}
value = r[response_field.id.to_s]

if value
response_field.serialized ? YAML::load(value) : value
Expand Down

0 comments on commit e389b7d

Please sign in to comment.