1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

set accessors in the set_accessors! method

This commit is contained in:
Aaron Patterson 2013-10-27 14:31:49 -03:00
parent 41047172c3
commit b7ca9b52fe
2 changed files with 2 additions and 2 deletions

View file

@ -96,11 +96,9 @@ module Rails
end
def create_root
self.destination_root = File.expand_path(app_path, destination_root)
valid_const?
empty_directory '.'
set_default_accessors!
FileUtils.cd(destination_root) unless options[:pretend]
end
@ -111,6 +109,7 @@ module Rails
end
def set_default_accessors!
self.destination_root = File.expand_path(app_path, destination_root)
self.rails_template = case options[:template]
when /^https?:\/\//
options[:template]

View file

@ -162,6 +162,7 @@ module Rails
end
end
public_task :set_default_accessors!
public_task :create_root
def create_root_files