Another reason that was causing problems like #41 is that this gem touches ActiveRecord::Base from the toplevel.
This should better be delayed until the application defines a model and loads AR::Base, and for that purpose, Rails has ActiveSupport.on_load mechanism.
This simple hook is indeed independent on Rails (Raities) since it's implemented in Active Support and triggered within AR::Base class, so it should work with non-Rails apps.
Another reason that was causing problems like #41 is that this gem touches
ActiveRecord::Base
from the toplevel. This should better be delayed until the application defines a model and loadsAR::Base
, and for that purpose, Rails hasActiveSupport.on_load
mechanism.This simple hook is indeed independent on Rails (Raities) since it's implemented in Active Support and triggered within
AR::Base
class, so it should work with non-Rails apps.