A Library Function Using Active Support
Active Support is a set of libraries shared by all Rails components. Some of what’s in there is intended for Rails’ internal use; however, all of it is available for use by non-Rails applications.
This could be important if you develop a Rails application and in the course of that development you produce a set of classes or even just a set of methods that you would like to make use of in a non-Rails application. You start by copying and pasting this code into a separate file and then find out that it doesn’t run—not because this logic is dependent on your application in any way but because it uses other methods and classes that Rails provides.
We will start with a brief survey of some of the most important ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access