Class: Postnhost::Constraints::PublicLocaleConstraint

Inherits:
Object
  • Object
show all
Defined in:
app/services/postnhost/constraints/public_locale_constraint.rb

Class Method Summary collapse

Class Method Details

.matches?(request) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'app/services/postnhost/constraints/public_locale_constraint.rb', line 4

def self.matches?(request)
  Postnhost::PublicRequestContext.for(request).localized_language?
end