Sha256: 23ce5eb2dd09eec1e2c310bcbf5b09e9b3538c4982efc2395374eecab7211c97

Contents?: true

Size: 470 Bytes

Versions: 45

Compression:

Stored size: 470 Bytes

Contents

require 'active_record'
require 'falls_back_on'
require 'sniff'

class DirigibleRecord < ActiveRecord::Base
  include BrighterPlanet::Dirigible
  include Sniff::Emitter
  
  falls_back_on :fuel_efficiency => 20.182.miles_per_gallon.to(:kilometres_per_litre), # mpg https://brighterplanet.sifterapp.com/projects/30/issues/428
                :annual_distance_estimate => 11819.miles.to(:kilometres) # miles https://brighterplanet.sifterapp.com/projects/30/issues/428
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
sniff-0.6.7 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.6.6 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.6.5 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.6.4 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.6.3 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.6.2 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.6.1 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.6.0 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.5.3 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.5.2 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.5.1 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.5.0 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.4.12 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.4.11 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.4.10 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.4.9 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.4.7 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.4.6 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.4.5 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.4.4 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb