4

Only mentions Rails 3 in the GitHub documentation - does anyone know if it's compatible with Rails 4?

I ask because it looks like it's been updated to handle Ruby 2.1.0

Richard Peck
  • 76,116
  • 9
  • 93
  • 147

3 Answers3

7

According to the travis build, tests pass with active record 4.

Intrepidd
  • 19,772
  • 6
  • 55
  • 63
4

Indeed, it works. We've been using it in one of our recent projects. You can also look at travis.yml file in the repo. It was tested to work with ActiveRecord 4.0.

marvelousNinja
  • 1,510
  • 9
  • 15
1

Yes it's compatible with Rails 4, but you need to add :parent_id to permit params in your controller.

Zakaria
  • 983
  • 15
  • 24
  • I'm looking at using ancestry with Rails 5. Where do you add `:parent_id`? As a field on the database table to add the tree stuff to? – Eric Jul 08 '18 at 21:45