Sha256: efacf8097d7e0bd309444199788d17eaaae04c7fbe37d69d443f99687712c194

Contents?: true

Size: 155 Bytes

Versions: 7

Compression:

Stored size: 155 Bytes

Contents

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

      matches > -1
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ember-cli-rails-0.7.4 lib/ember_cli/html_constraint.rb
ember-cli-rails-0.7.3 lib/ember_cli/html_constraint.rb
ember-cli-rails-0.7.2 lib/ember_cli/html_constraint.rb
ember-cli-rails-0.7.1 lib/ember_cli/html_constraint.rb
ember-cli-rails-0.7.0 lib/ember_cli/html_constraint.rb
ember-cli-rails-0.6.1 lib/ember_cli/html_constraint.rb
ember-cli-rails-0.6.0 lib/ember_cli/html_constraint.rb