module MtkFramework::ActiveInteractionParams

Public Instance Methods

params_from_interaction(klass, except: []) { |self| ... } click to toggle source
# File lib/mtk_framework/active_interaction_params.rb, line 7
def params_from_interaction(klass, except: [])
  params do
    klass.filters.except(*except).each do |_, filter|
      ParametrizeFilter.call(filter, self)
      yield self if block_given?
    end
  end
end