Sha256: 64af1b7b8f7e6d89961a24c7c44284e645e291d38a81e9a53f35709bf557b589
Contents?: true
Size: 449 Bytes
Versions: 22
Compression:
Stored size: 449 Bytes
Contents
module Flipper module UI # Internal: Used to detect the action that should be used in the middleware. class ActionCollection def initialize @action_classes = [] end def add(action_class) @action_classes << action_class end def action_for_request(request) @action_classes.detect { |action_class| request.path_info =~ action_class.regex } end end end end
Version data entries
22 entries across 22 versions & 1 rubygems