Skip to content

Commit

Permalink
security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bkocherov committed Aug 3, 2015
1 parent 6392f87 commit c283ba5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/controllers/select2_autocompletes_controller.rb
Expand Up @@ -3,8 +3,6 @@ def search
begin
if params[:class_name].present?
adapter = "::#{params[:class_name].camelize}SearchAdapter".constantize
elsif params[:default_class_name].present?
adapter = ::AutoSelect2::Select2SearchAdapter::Default
else
render json: {error: "not enough search parameters'"}.to_json,
status: 500
Expand Down

1 comment on commit c283ba5

@Tab10id
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMG! How can we not think about it! Thank you man!

Please sign in to comment.