Skip to content

Commit

Permalink
Prevent ActionController::UnfilteredParameters error
Browse files Browse the repository at this point in the history
  • Loading branch information
eisuke committed May 9, 2017
1 parent 1a2dca5 commit befff65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/kuroko2/api/job_instances_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Kuroko2::Api::JobInstancesController < Kuroko2::Api::ApplicationController

validates :create do
hash :env, description: 'Env variables to launch an instance' do |env|
env.to_h.all? { |_, v| v.is_a?(String) }
env.values.all? { |v| v.is_a?(String) }
end
end

Expand Down

0 comments on commit befff65

Please sign in to comment.