lib/susanoo/controllers/assets.rb in susanoo-0.8.0 vs lib/susanoo/controllers/assets.rb in susanoo-0.10.0
- old
+ new
@@ -9,11 +9,11 @@
def call(env)
# Environment is a sprockets environment instance
run environment
end
- def build(generator)
+ def build(generator, route)
assets = Sprockets::Environment.new
assets.append_path File.join(project_root,
'src/assets/javascripts')
assets.append_path File.join(project_root,
'src/assets/stylesheets')
@@ -40,10 +40,10 @@
end
if File.exist? File.join(project_root,
'src/assets/fonts')
generator.say_status 'copy', 'src/assets/fonts'
- `cp #{project_root}/src/assets/fonts #{project_root}/www/assets/fonts -rv`
+ `cp #{project_root}/src/assets/fonts #{project_root}/www/assets/fonts -r`
end
end
end
end