lib/typus/controller/trash.rb in typus-3.1.0.rc4 vs lib/typus/controller/trash.rb in typus-3.1.0.rc5
- old
+ new
@@ -23,10 +23,11 @@
add_resource_action('Delete Permanently', {:action => 'wipe'}, {:confirm => Typus::I18n.t("Delete Permanently %{resource}?", :resource => @resource.model_name.human)})
# Generate and render.
generate_html
render 'index'
end
- @resource.typus_export_formats.each { |f| format.send(f) { send("generate_#{f}") } }
+
+ %w(json xml csv).each { |f| format.send(f) { send("generate_#{f}") } }
end
end
def restore
set_deleted