Sha256: 9e8398802a2fe1549fb93319d96d8ec9df386836e250582a4857ba49b22b35a5

Contents?: true

Size: 103 Bytes

Versions: 2

Compression:

Stored size: 103 Bytes

Contents

class FrontendConstraint
  def self.matches?(request)
    request.format.to_s == 'text/html'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stoker-1.0.0.pre6 templates/frontend_constraint.rb
stoker-1.0.0.pre5 templates/frontend_constraint.rb