Flowdock
method

source_path

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Rails::Generator::Base

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

source_path(relative_source) public

Return the full path from the source root for the given path. Example for source_root = ’/source’:

  source_path('some/path.rb') == '/source/some/path.rb'

The given path may include a colon ’:’ character to indicate that the file belongs to another generator. This notation allows any generator to borrow files from another. Example:

  source_path('model:fixture.yml') = '/model/source/path/fixture.yml'
Show source
Register or log in to add new notes.