Fun with Rails Enums and PORO
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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper