aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/stubs
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/test/support/stubs')
-rw-r--r--activejob/test/support/stubs/strong_parameters.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/activejob/test/support/stubs/strong_parameters.rb b/activejob/test/support/stubs/strong_parameters.rb
new file mode 100644
index 0000000000..acba3a4504
--- /dev/null
+++ b/activejob/test/support/stubs/strong_parameters.rb
@@ -0,0 +1,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