Skip to content

Commit

Permalink
Fix options set for specified field
Browse files Browse the repository at this point in the history
  • Loading branch information
lucor committed Apr 8, 2013
1 parent 3690ebe commit 9e53967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prawn-fillform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def fill_form_with(data={})
if value.nil?
value = data[field.name].fetch(:value) rescue nil
end
options = field_hash.fetch(:options) rescue nil
options = data[field.name].fetch(:options) rescue nil
options ||= {}

if value
Expand Down

0 comments on commit 9e53967

Please sign in to comment.