Class: Locomotive::Routing::PostContentEntryConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/locomotive/routing/post_content_entry_constraint.rb

Instance Method Summary collapse

Instance Method Details

#matches?(request) ⇒ Boolean

Returns:



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