Sha256: d167cf4863139f321b249c85b51b912d8584f91570b38d0df079d89912beea39
Contents?: true
Size: 872 Bytes
Versions: 5
Compression:
Stored size: 872 Bytes
Contents
module BrighterPlanet module Automobile extend self def included(base) require 'cohort_scope' require 'falls_back_on' require 'falls_back_on/active_record_ext' require 'automobile/carbon_model' require 'automobile/characterization' require 'automobile/data' require 'automobile/summarization' base.send :include, BrighterPlanet::Automobile::CarbonModel base.send :include, BrighterPlanet::Automobile::Data base.send :include, BrighterPlanet::Automobile::Summarization base.send :include, BrighterPlanet::Automobile::Characterization end def automobile_model if Object.const_defined? 'Automobile' ::Automobile elsif Object.const_defined? 'AutomobileRecord' AutomobileRecord else raise 'There is no automobile model' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
automobile-0.0.9 | lib/automobile.rb |
automobile-0.0.8 | lib/automobile.rb |
automobile-0.0.7 | lib/automobile.rb |
automobile-0.0.5 | lib/automobile.rb |
automobile-0.0.4 | lib/automobile.rb |