instance method
destination_path
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
destination_path(relative_destination)
Return the full path from the destination root for the given path. Example for destination_root = ‘/dest’:
destination_path('some/path.rb') == '/dest/some/path.rb'
Parameters
-
relative_destinationreq
Source
# File railties/lib/rails_generator/base.rb, line 153
def destination_path(relative_destination)
File.join(destination_root, relative_destination)
end
Defined in railties/lib/rails_generator/base.rb line 153
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generator::Base