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.11.3 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.11.2 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.11.1 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.11.0 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.10.1 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.10.0 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.9.0 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.8.7 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.8.6 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.8.5 spec/fixtures/dirigible/features/support/dirigible_record.rb
sniff-0.8.4 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.8.3 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.8.2 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.8.1 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.8.0 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.7.3 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.7.2 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.7.1 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.7.0 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb
sniff-0.6.8 spec/fixtures/dirigible/lib/test_support/dirigible_record.rb