Sha256: 8de71301b4c95b27bf099d99af9a229b96fefed6d05e8683b99033fb7f0166aa
Contents?: true
Size: 848 Bytes
Versions: 6
Compression:
Stored size: 848 Bytes
Contents
module BrighterPlanet module RailTrip extend self def included(base) require 'cohort_scope' require 'falls_back_on' require 'falls_back_on/active_record_ext' require 'rail_trip/carbon_model' require 'rail_trip/characterization' require 'rail_trip/data' require 'rail_trip/summarization' base.send :include, BrighterPlanet::RailTrip::CarbonModel base.send :include, BrighterPlanet::RailTrip::Characterization base.send :include, BrighterPlanet::RailTrip::Data base.send :include, BrighterPlanet::RailTrip::Summarization end def rail_trip_model if Object.const_defined? 'RailTrip' ::RailTrip elsif Object.const_defined? 'RailTripRecord' RailTripRecord else raise 'There is no rail_trip model' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems