Javi Martín
5fab843184
Simplify managing investment votes
...
If I'm right, the `investment_votes` instance variable only exists to
avoid several database queries to get whether the current user has
supported each of the investments.
However, that doesn't make much sense when only one investment is shown.
In this case, the number of queries stays the same, and so we can
simplify the code by rendering the component with an optional parameter.
2021-06-14 14:41:51 +02:00
..
2021-06-11 16:44:33 +02:00
2021-06-14 14:41:51 +02:00
2021-06-09 21:51:39 +02:00
2021-04-09 16:21:00 +02:00
2021-02-24 20:42:53 +01:00
2021-06-14 14:41:51 +02:00
2020-12-04 19:57:05 +01:00
2021-01-12 14:50:36 +01:00
2019-10-26 20:10:32 +02:00
2020-08-07 11:52:24 +02:00
2021-03-02 14:45:18 +01:00
2021-02-26 16:16:51 +01:00
2020-08-11 18:19:48 +02:00
2020-04-27 19:26:37 +02:00
2019-11-08 19:15:04 +01:00
2019-10-24 17:11:47 +02:00
2021-03-15 13:31:28 +01:00
2021-03-18 15:03:21 +01:00
2021-04-13 20:04:04 +02:00
2019-11-13 01:33:06 +01:00
2019-09-11 19:45:19 +02:00
2021-01-26 19:18:11 +01:00
2019-09-10 20:02:15 +02:00
2019-10-24 17:11:47 +02:00
2019-10-24 17:11:47 +02:00
2021-04-13 13:52:18 +02:00
2020-07-08 18:34:58 +02:00
2019-11-12 19:28:35 +01:00
2021-06-03 17:24:46 +02:00
2020-06-15 11:54:05 +02:00
2021-01-20 17:22:05 +01:00
2020-08-11 11:10:10 +07:00
2019-10-24 17:11:47 +02:00
2021-06-03 11:13:52 +02:00
2019-10-24 17:56:03 +02:00
2019-10-24 17:11:47 +02:00
2019-03-25 14:58:54 +01:00
2019-10-24 17:11:47 +02:00
2019-10-23 14:39:31 +02:00
2020-07-14 12:32:12 +02:00
2019-10-24 17:11:47 +02:00
2021-01-20 17:22:05 +01:00