Loading hook for Rails models

Adds :model_class loading hook for every ActiveRecord descendant.

Installation

Just include the gem in Gemfile and bundle it.

Usage

ActiveSupport.on_load :model_class do
  # Put the code for your model here
end

License

This project uses MIT-LICENSE.

© Alexander Senko, SoftPro Ltd.