Sha256: ed6231b1ebb6c70ae586754883d2955b3492be499024b4972f193dddf2a60579

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

module Seory
  module Condition
    class Path
      def initialize(path, exact_match = false)
        @path        = path
        @exact_match = exact_match
      end

      def match?(controller)
        controller.request.fullpath.start_with?(@path)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seory-0.2.0 lib/seory/condition/path.rb
seory-0.1.0 lib/seory/condition/path.rb