Files
nairobi/app/models
Javi Martín e3bfcbcd25 Apply Style/ClassVars rubocop rule
Class variables in Ruby are not the same as instance variables of a
class. They're particularly tricky when it comes to inheritance and
modules.

In the case of the Measurable module, for example, using a class
variable will make all classes including the Measurable module share
the same value. However, that's not what we want; we want the variable
to be different for every class. And that's accomplished using a class
instance variable.

Although in this case it would probably be better to remove the caching
variable. I don't think these methods are called more than once during a
request, and even if they did it's highly unlikely the would become a
bottleneck.
2019-10-26 13:03:49 +02:00
..
2019-10-25 19:29:12 +02:00
2015-07-15 13:32:13 +02:00
2019-10-25 19:29:12 +02:00
2019-03-27 15:22:14 +01:00
2019-10-25 19:29:12 +02:00
2019-10-23 14:39:31 +02:00
2019-03-14 17:25:43 +01:00
2019-04-29 13:08:43 -05:00
2019-10-25 19:29:12 +02:00
2019-05-22 11:50:03 +02:00
2019-10-23 18:29:09 +02:00
2019-02-05 17:41:00 +01:00
2019-10-25 19:29:12 +02:00
2019-09-10 21:43:38 +02:00
2019-10-26 13:03:49 +02:00
2017-12-15 19:21:02 +01:00