module ActionDispatch::Routing::PolymorphicRoutes

def polymorphic_url_for_action(action, record_or_hash, options)

def polymorphic_url_for_action(action, record_or_hash, options)
  polymorphic_url(record_or_hash, options.merge(action: action))
end