Rails adds beginless range support to clusivity | Saeloun Blog
25-Aug-2022 785
Now that Ruby 2.7 has added the support for beginless range, Rails 7 also adds support to include the beginless range in ActiveRecord inclusivity/exclusivity validators.Prior to Rails 7, if we were to add a validation to a Product model where the price needs to be within 5000, we’d have to follow this method-.
Rails adds beginless range support to clusivity | Saeloun Blog #ruby #rubydeveloper #rubyonrails #Rails #beginless #range #support #clusivity #Saeloun #blog https://rubyonrails.ba/link/rails-adds-beginless-range-support-to-clusivity-saeloun-blog