lib/typus/controller/trash.rb in typus-3.1.7 vs lib/typus/controller/trash.rb in typus-3.1.8
- old
+ new
@@ -29,10 +29,12 @@
# Generate and render.
generate_html
render 'index'
end
- %w(json xml csv).each { |f| format.send(f) { send("generate_#{f}") } }
+ format.csv { generate_csv }
+ format.json { export(:json) }
+ format.xml { export(:xml) }
end
end
def restore
@resource.restore(params[:id])