Skip to content

Commit

Permalink
allow all field params through
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb committed Oct 13, 2013
1 parent 40eac07 commit a165443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/formbuilder/forms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def load_form
end

def transformed_field_params(field_params, i)
filtered_params = field_params.reject { |k, v|
!k.to_sym.in?(Formbuilder::ResponseField::ALLOWED_PARAMS) || v.blank?
filtered_params = field_params.select { |k, _|
k.to_sym.in?(Formbuilder::ResponseField::ALLOWED_PARAMS)
}.merge(
sort_order: i,
type: "Formbuilder::ResponseField#{field_params[:field_type].camelize}"
Expand Down

0 comments on commit a165443

Please sign in to comment.