Sha256: 0cd2c5ac3f20bdfc58a553c3c7cf750f7637dce4eecfd9f7e1fcb111a62f4698

Contents?: true

Size: 162 Bytes

Versions: 3

Compression:

Stored size: 162 Bytes

Contents

module EmberCli
  class TrailingSlashConstraint
    def matches?(request)
      !request.original_fullpath.to_s.split("?").first.end_with?("/")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ember-cli-rails-0.12.2 lib/ember_cli/trailing_slash_constraint.rb
ember-cli-rails-0.12.1 lib/ember_cli/trailing_slash_constraint.rb
ember-cli-rails-0.12.0 lib/ember_cli/trailing_slash_constraint.rb