Ruby & Rails Tips ๐
2022
2021
- Use invert_where to invert where clause ๐งฉ Dec 26
- Authenticate By for preventing timing-based enum attacks โณ Dec 14
- Freezing string to improve performanceโก๏ธ Dec 9
- Use is_a? or kind_of? over instance_of? ๐ซ Oct 5
- Use of xxx_changed? and xxx_was methods in Rails ๐ Sep 29
- Multiple each_xxx method on string ๐ Sep 27
- values_at method to retrieve multiple non-sequential values โ๐ผ Sep 26
- Make large number more readable โ๐ผ Aug 17