Flowdock
method

source_path

Importance_1
v2.2.1 - Show latest stable - 0 notes - Class: Rails::Generator::Base
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.