8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/generators/cis_rails_chat/install_generator.rb', line 8
def copy_files
template "cis_rails_chat.yml", "config/cis_rails_chat.yml"
if ::Rails.version < "3.1"
copy_file "../../../../app/assets/javascripts/cis_rails_chat.js", "public/javascripts/cis_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/cis_rails_chat.js", "app/assets/javascripts/cis_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 "cis_rails_chat.ru", "cis_rails_chat.ru"
end
|