Fixed ActiveRecord support
Fixed ActiveRecord support