Fun with Rails Enums and PORO
07-Oct-2021 1939
I really like enums. They can be really powerful if they are used wisely. Let’s see what we can do with them in a multilingual Rails app with a little help from PORO (Plain Old Ruby Object).In this article, I will quickly explain the basics and introduce a few tasks that can occur when you are using enums in the Rails app. For each, I will try to show the usual way (which I know about) and a more fun way (at least for me) with PORO.
Fun with Rails Enums and PORO #ruby #rubydeveloper #rubyonrails #Rails #Enums https://rubyonrails.ba/link/fun-with-rails-enums-and-poro