lib/susanoo/controllers/static.rb in susanoo-0.11.1 vs lib/susanoo/controllers/static.rb in susanoo-0.12.0
- old
+ new
@@ -18,10 +18,11 @@
{},
['Can not find the file']]
end
end
- def build(generator, route)
+ def build(generator, options)
+ route = options[:route]
file = route.path_for_generation[1..-1]
generator.copy_file file, "www/#{route.path_for_generation}"
end
end