1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/test/support/stubs/strong_parameters.rb

15 lines
217 B
Ruby

# frozen_string_literal: true
class Parameters
def initialize(parameters = {})
@parameters = parameters.with_indifferent_access
end
def permitted?
true
end
def to_h
@parameters.to_h
end
end