1. Create a file(suppose init.rb) into your project's config/initializers folder
2. Paste the following code :
return 'Now I am in ActiveRecord'
3. Now you can call your_method from any Model of your application, i,e you are adding your_mothod(it will static method) to all your application's models
4. You can call it like :