Module: ShardedDatabase::Aggregate
- Defined in:
- lib/sharded_database/aggregate.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/sharded_database/aggregate.rb', line 6 def self.included(klass) klass.extend ClassMethods klass.send :include, InstanceMethods klass.class_eval do cattr_accessor :foreign_id @foreign_id = :other_id class << self alias_method_chain :find, :aggregate_proxy end end end |