how about
require 'railsties' if ActiveRecord::VERSION::MAJOR > 2


On Fri, Jun 14, 2013 at 6:53 PM, Michael Wu <notifications@github.com>wrote:

> In Gemfile:
>
> > @@ -7,3 +7,4 @@ gem 'bump'
> >  gem 'rake'
> >  gem 'rspec', '~>2'
> >  gem 'sqlite3'
> > +gem 'railties'
>
> if i leave railties here the rails2 test fails, but if I don't then the
> test never loads railties. grwar.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/grosser/ar_after_transaction/pull/8/files#r4713145>
> .
>