class Seory::Condition::Path
Public Class Methods
new(path, exact_match = false)
click to toggle source
# File lib/seory/condition/path.rb, line 4 def initialize(path, exact_match = false) @path = path @exact_match = exact_match end
Public Instance Methods
match?(controller)
click to toggle source
# File lib/seory/condition/path.rb, line 9 def match?(controller) controller.request.fullpath.start_with?(@path) end