lib/residence.rb in residence-0.0.9 vs lib/residence.rb in residence-0.0.10
- old
+ new
@@ -1,24 +1,11 @@
+require 'emitter'
+
module BrighterPlanet
module Residence
- extend self
+ extend BrighterPlanet::Emitter
- def included(base)
- require 'cohort_scope'
- require 'falls_back_on'
- require 'falls_back_on/active_record_ext'
-
- require 'residence/carbon_model'
- require 'residence/characterization'
- require 'residence/data'
- require 'residence/summarization'
-
- base.send :include, BrighterPlanet::Residence::CarbonModel
- base.send :include, BrighterPlanet::Residence::Characterization
- base.send :include, BrighterPlanet::Residence::Data
- base.send :include, BrighterPlanet::Residence::Summarization
- end
- def residence_model
+ def self.residence_model
if Object.const_defined? 'Residence'
::Residence
elsif Object.const_defined? 'ResidenceRecord'
ResidenceRecord
else