24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/generators/textile_rails/install_generator.rb', line 24
def copy_assets
if asset_pipeline_enabled?
js_destination = 'app/assets/javascripts'
css_destination = 'app/assets/stylesheets'
else
js_destination = 'public/javascripts'
css_destination = 'public/stylesheets'
end
copy_file 'assets/javascripts/textile-editor.js', "#{js_destination}/textile-editor.js"
copy_file 'assets/javascripts/textile-editor-config.js', "#{js_destination}/textile-editor-config.js"
copy_file 'assets/stylesheets/textile-editor.css', "#{css_destination}/textile-editor.css"
directory 'assets/images/textile-editor', 'public/images/textile-editor'
readme 'README' if behavior == :invoke
end
|