Files
grecia/app/models
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
..
2019-03-14 17:25:43 +01: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
2015-07-15 13:32:13 +02:00
2017-11-17 13:14:03 -04:00
2019-04-17 17:40:56 +02:00
2019-04-17 17:40:56 +02:00
2019-04-17 17:40:56 +02:00
2019-03-14 17:25:43 +01:00
2019-04-17 17:40:56 +02:00
2019-03-14 17:25:43 +01:00
2019-02-05 17:41:00 +01:00
2019-04-17 17:40:56 +02:00
2017-12-15 19:21:02 +01:00