Class: AbTest

Inherits:
ApplicationRecord show all
Defined in:
app/models/ab_test.rb

Instance Method Summary collapse

Instance Method Details

#match?(request_path) ⇒ Boolean

Returns:

  • (Boolean)

2
3
4
5
6
# File 'app/models/ab_test.rb', line 2

def match?(request_path)
  return request_path == path if equal?

  request_path.match(path)
end