mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Move prototype files to javascripts folder.
This commit is contained in:
parent
720aceeea9
commit
ceede90017
6 changed files with 2 additions and 4 deletions
|
@ -23,7 +23,7 @@ class App < Thor::Group
|
||||||
:desc => "Preconfigure for selected database (options: #{DATABASES.join('/')})"
|
:desc => "Preconfigure for selected database (options: #{DATABASES.join('/')})"
|
||||||
|
|
||||||
class_option :with_dispatchers, :type => :boolean, :aliases => "-D", :default => false,
|
class_option :with_dispatchers, :type => :boolean, :aliases => "-D", :default => false,
|
||||||
:desc => "Add CGI/FastCGI/mod_ruby dispatches code"
|
:desc => "Add CGI/FastCGI/mod_ruby dispatchers code"
|
||||||
|
|
||||||
class_option :freeze, :type => :boolean, :aliases => "-f", :default => false,
|
class_option :freeze, :type => :boolean, :aliases => "-f", :default => false,
|
||||||
:desc => "Freeze Rails in vendor/rails from the gems"
|
:desc => "Freeze Rails in vendor/rails from the gems"
|
||||||
|
@ -108,9 +108,7 @@ class App < Thor::Group
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_javascript_files
|
def create_javascript_files
|
||||||
%w( prototype effects dragdrop controls application ).each do |javascript|
|
directory "javascripts/prototype", "public/javascripts"
|
||||||
copy_file "prototype/#{javascript}.js", "public/javascripts/#{javascript}.js"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_script_files
|
def create_script_files
|
||||||
|
|
Loading…
Reference in a new issue