class method
self.destination
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v3.2.22.5Signature
self.destination(path)
Sets the destination of generator files:
destination File.expand_path("../tmp", File.dirname(__FILE__))
Parameters
-
pathreq
Source
# File railties/lib/rails/generators/test_case.rb, line 65
def self.destination(path)
self.destination_root = path
end
Defined in railties/lib/rails/generators/test_case.rb line 65
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::TestCase