class Command::InputMiddleware::RailsParams
Public Class Methods
call(inputs)
click to toggle source
# File lib/command/input_middleware/rails_params.rb, line 6 def self.call(inputs) class_name = 'ActionController::Parameters' klass = class_name.safe_constantize return inputs unless klass && inputs.is_a?(klass) inputs.to_unsafe_h.to_h end