Class: Locomotive::Routing::PostContentEntryConstraint
- Inherits:
-
Object
- Object
- Locomotive::Routing::PostContentEntryConstraint
- Defined in:
- lib/locomotive/routing/post_content_entry_constraint.rb
Instance Method Summary collapse
Instance Method Details
#matches?(request) ⇒ Boolean
5 6 7 |
# File 'lib/locomotive/routing/post_content_entry_constraint.rb', line 5 def matches?(request) request.post? && request.params[:content_type_slug].present? end |