aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/stubs/strong_parameters.rb
blob: acba3a4504bcf3351068537fbb3ea60103cb9f52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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