Top Level Namespace

Defined Under Namespace

Modules: ITypeAssert, SorbetRails, TypeAssertImpl, TypedParams Classes: ActiveFlagPlugin, ActiveRecordOverrides, AttrJsonPlugin, ElasticSearchPlugin, FlagShihTzuPlugin, FriendlyIdPlugin, KaminariPlugin, PaperclipPlugin, PgSearchPlugin, ShrinePlugin, TA

Constant Summary collapse

GeneratedUrlHelpers =

Sorbet does not allow dynamic includes like `url_helpers` This module is a drop-in replacement for the dynamic include, and should contains all _url, _path methods as defined in the URL helpers.

eg:

class MyClass

  • include Rails.application.routes.url_helpers

+ include GeneratedUrlHelpers end

Reference: github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/routing/route_set.rb

Rails.application.routes.url_helpers