class AbstractController::Callbacks::ActionFilter

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/abstract_controller/callbacks.rbs

class AbstractController::Callbacks::ActionFilter
  def match?: (GemsController controller) -> false
end

:nodoc:

def initialize(actions)

:nodoc:
def initialize(actions)
  @actions = Array(actions).map(&:to_s).to_set
end

def match?(controller)

Experimental RBS support (using type sampling data from the type_fusion project).

def match?: (GemsController controller) -> false

This signature was generated using 1 sample from 1 application.

def match?(controller)
  @actions.include?(controller.action_name)
end