Module: Realm::Mixins::AggregateMember::ClassMethods

Defined in:
lib/realm/mixins/aggregate_member.rb

Instance Method Summary collapse

Instance Method Details

#aggregateObject



15
16
17
18
19
20
21
# File 'lib/realm/mixins/aggregate_member.rb', line 15

def aggregate
  @aggregate ||= begin
    module_chain = name.split('::')
    domain_index = module_chain.index('Domain')
    domain_index && module_chain[domain_index + 1].underscore.to_sym
  end
end