No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
Allows the RRN to perform garbage collection on categories that are no longer referenced.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 4.0
 Project Readme

ActsAsSourceable

Allows the RRN to perform garbage project on categories that are no longer referenced.

Installation

In your gemfile

gem 'acts_as_sourceable'

Migration

create_table :acts_as_sourceable_registry do |t|
  t.belongs_to :sourceable, :polymorphic => true
  t.belongs_to :source, :polymorphic => true
  t.timestamps
end

add_index :acts_as_sourceable_registry, [:sourceable_id, :sourceable_type], :name => :index_acts_as_sourceable_sourceables
add_index :acts_as_sourceable_registry, [:source_id, :source_type], :name => :index_acts_as_sourceable_sources

Usage