mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
15 lines
217 B
Ruby
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
|