8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/generators/rails_chat/install_generator.rb', line 8
def copy_files
template "rails_chat.yml", "config/rails_chat.yml"
if ::Rails.version < "3.1"
copy_file "../../../../app/assets/javascripts/rails_chat.js", "public/javascripts/rails_chat.js"
copy_file "../../../../app/assets/javascripts/emoticons_defination.js", "public/javascripts/emoticons_defination.js"
copy_file "../../../../app/assets/javascripts/emoticons.js", "public/javascripts/emoticons.js"
copy_file "../../../../app/assets/stylesheets/emoticons.css", "public/stylesheets/emoticons.css"
copy_file "../../../../app/assets/images/emoticons.png", "public/images/emoticons.png"
else
copy_file "../../../../app/assets/javascripts/rails_chat.js", "app/assets/javascripts/rails_chat.js"
copy_file "../../../../app/assets/javascripts/emoticons_defination.js", "app/assets/javascripts/emoticons_defination.js"
copy_file "../../../../app/assets/javascripts/emoticons.js", "app/assets/javascripts/emoticons.js"
copy_file "../../../../app/assets/stylesheets/emoticons.css", "app/assets/stylesheets/emoticons.css"
copy_file "../../../../app/assets/images/emoticons.png", "app/assets/images/emoticons.png"
end
copy_file "rails_chat.ru", "rails_chat.ru"
end
|