Files
nairobi/app/models/concerns
Julian Herrero c9752e94be Change the way we retrireve the images urls
For some reason the paperclip method `attachment.exists?' was
returning nil even when `attachment.url(style)' was correctly
returning the url/path of the attachment.

Therefore returning `nil' was causing to raise an error in the
method `image_tag'.

With this change we make sure we return the image url it it's
available, or an empty string if it's not, but never a null value.
2019-04-17 17:40:56 +02:00
..
2015-07-15 13:32:13 +02:00
2017-09-06 14:12:32 +02:00
2019-03-14 17:25:43 +01:00
2016-11-23 19:19:19 +01:00
2017-10-17 22:00:00 +02:00
2019-03-14 17:25:43 +01:00
2019-03-14 17:25:43 +01:00
2019-03-14 17:25:43 +01:00
2017-12-16 17:59:16 +01:00
2019-04-17 17:40:56 +02:00
2019-03-14 17:25:43 +01:00
2018-05-22 15:02:35 +02:00