In this post, lets see how to extend ActiveRecord::Base class to add custom methods.
ActiveRecord::Base