Javi Martín
8a47fe3505
Avoid a brakeman security warning
...
Although it wasn't a real security concern because we were only calling
a `find` method based on the user input, it's a good practice to avoid
using constants based on user parameters.
Since we don't use the `find` method anymore but we still need to check
the associated record exists, we're changing the `followable` validation
in the `Follow` model to do exactly that.
2021-04-13 13:52:18 +02:00
Angel Perez
01c1ac2b10
Replace all occurrences of ActiveRecord::Base with ApplicationRecord
2019-04-17 17:40:56 +02:00
Bertocq
7d406cae76
Rubocop autocorrections
2017-07-25 13:01:03 +02:00
Senén Rodero Rodríguez
b7bce2e699
Remove complex methods from follow model. Create instance method followed_by? on followable model concern. Some code improvements.
2017-07-19 21:50:37 +02:00
Senén Rodero Rodríguez
b0ee52556c
Remove comment
2017-07-11 10:36:07 +02:00
Senén Rodero Rodríguez
4b2310c135
Move and refactor method from follow to user model to get user interests. Add specification to check the discard of duplicate interests.
2017-07-07 15:18:34 +02:00
taitus
b60748c552
Remove unneeded return from Follow model. Add whitespaces to enhance reading.
2017-07-07 13:38:52 +02:00
taitus
35f7f11177
Add dependent destroy to followable.
2017-07-07 13:37:55 +02:00
taitus
14ec4f5315
Add styles and translations for users interests.
2017-07-07 13:37:53 +02:00
taitus
19820e4432
Add public interests validation and show interests on user profile
2017-07-07 13:34:43 +02:00
taitus
bce28afe36
Add followable to budget investment model.
2017-07-07 12:07:25 +02:00
Senén Rodero Rodríguez
84dbef16a4
Create followable concern, follow model. Add followable to proposal model.
2017-07-07 12:02:00 +02:00