Sha256: 2b101f96b5ef5055f4b5326ad2ea0a2aac6000d95901091303ad9e1b2fc61f42
Contents?: true
Size: 767 Bytes
Versions: 6
Compression:
Stored size: 767 Bytes
Contents
module BrighterPlanet module Pet extend self def included(base) require 'cohort_scope' require 'falls_back_on' require 'falls_back_on/active_record_ext' require 'pet/carbon_model' require 'pet/characterization' require 'pet/data' require 'pet/summarization' base.send :include, BrighterPlanet::Pet::CarbonModel base.send :include, BrighterPlanet::Pet::Characterization base.send :include, BrighterPlanet::Pet::Data base.send :include, BrighterPlanet::Pet::Summarization end def pet_model if Object.const_defined? 'Pet' ::Pet elsif Object.const_defined? 'PetRecord' PetRecord else raise 'There is no pet model' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
pet-0.0.8 | lib/pet.rb |
pet-0.0.7 | lib/pet.rb |
pet-0.0.6 | lib/pet.rb |
pet-0.0.5 | lib/pet.rb |
pet-0.0.4 | lib/pet.rb |
pet-0.0.3 | lib/pet.rb |