An implementation of ActiveRecord before_filters in lightweight way for pure Ruby