Useful Active Support features you may not have heard of
13-May-2021 1085
Active Support is a really powerful library that is a part of Rails framework. It contains many useful core extensions that empower standard ruby objects with additional features. For example it adds hours method to Integer class and allows us to create simple and readable code like created_at < 2.hours.ago instead of created_at < Time.current - 2*60*60. Today we’ll dive beyond that and focus on many utilities it includes, which can be useful in your next Rails project or any other ruby app.
Useful Active Support features you may not have heard of #ruby #rubydeveloper #rubyonrails #Useful #Active #Support #features #heard #active https://rubyonrails.ba/link/useful-active-support-features-you-may-not-have-heard-of