Files
nairobi/app/views
Javi Martín 68ca29fa8b Convert markdown to HTML on demand
We were converting markdown to HTML every time we saved a record, which
has the same problems as sanitizing HTML before saving it to the
database, particularly because the body of a legislation draft is stored
in a translations table.

Performance-wise this isn't a problem: converting a text with more than
200_000 characters takes about a milisecond on my machine.

Note we need to modify a migration generated by globalize, since the
method `create_translation_table!` would fail now that we don't define
`translates :body_html` in the model.
2019-10-21 21:32:43 +02:00
..
2019-10-21 21:32:02 +02:00
2019-10-08 19:10:13 +02:00
2019-09-10 21:04:56 +02:00
2019-03-25 14:58:54 +01:00
2019-10-20 17:26:14 +02:00
2019-10-08 19:10:13 +02:00
2019-10-21 21:32:02 +02:00
2019-09-10 21:04:56 +02:00
2019-09-10 20:02:15 +02:00