method

from_rails_root

rails latest stable - Class: ActionView::StructuredEventSubscriber::Utils

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

from_rails_root(string)
private

No documentation available.

# File actionview/lib/action_view/structured_event_subscriber.rb, line 58
        def from_rails_root(string)
          return unless string

          string = string.sub("#{rails_root}/", "")
          string.sub!(VIEWS_PATTERN, "")
          string
        end