Files
nairobi/db/dev_seeds
rgarcia 68a2281203 Refactor segment constant into a class method
We're going to make it dynamic using the geozones. Besides, class
methods can be overwritten using custom models, while constants can't be
overwritten without getting a warning [1].

Makes the definition of segments with geozones a little cleaner. I
think it’s worth it, compared to the slight memory gain of using a
constant [2].

[1] warning: already initialized constant UserSegments::SEGMENTS

[2] https://stackoverflow.com/questions/15903835/class-method-vs-constant-in-ruby-rails#answer-15903970
2021-12-20 15:07:25 +01:00
..
2018-07-24 11:22:15 +02:00
2021-08-13 04:39:44 +02:00
2019-02-25 15:34:15 +01:00
2021-08-13 04:39:44 +02:00
2021-08-13 04:39:44 +02:00
2019-10-23 14:39:31 +02:00
2021-08-13 04:39:44 +02:00
2021-08-13 04:39:44 +02:00
2020-12-16 13:16:48 +01:00