Sha256: 6c3e63213aabc846052c24c7ec71f8995eb1edb83c957f44c53c53313655b06d

Contents?: true

Size: 151 Bytes

Versions: 9

Compression:

Stored size: 151 Bytes

Contents

module EmberCli
  class Constraint
    def matches?(request)
      matches = request.format.to_s =~ /html/ || -1

      matches > -1
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ember-cli-rails-0.5.8 lib/ember_cli/constraint.rb
ember-cli-rails-0.5.7 lib/ember_cli/constraint.rb
ember-cli-rails-0.5.6 lib/ember_cli/constraint.rb
ember-cli-rails-0.5.5 lib/ember_cli/constraint.rb
ember-cli-rails-0.5.4 lib/ember_cli/constraint.rb
ember-cli-rails-0.5.3 lib/ember_cli/constraint.rb
ember-cli-rails-0.5.2 lib/ember_cli/constraint.rb
ember-cli-rails-0.5.1 lib/ember-cli/constraint.rb
ember-cli-rails-0.5.0 lib/ember-cli/constraint.rb