Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Arrange inherited model when using STI #118
class Page < ActiveRecord::Base has_ancestry end class Category < Page end
To get all arranged categories I have to use Page model with condition:
Unfortunately this does not work and returns all records (including Page models)
adds condition by type
It would by handy if "arrange" will provide same behavior