forked from rich/acts_as_revisable
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement 'branch_source' as a class method instead of as a
belongs_to association. AFAIK, there is no way to escape the default_scope of the revisable class that only selects rows with revisable_is_current==true. This means that branch_source will work for any parent, whether it is an active object or a revision.
- Loading branch information
Showing
1 changed file
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters