Class: AutomobileRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AutomobileRecord
- Includes:
- BrighterPlanet::Automobile, Sniff::Emitter
- Defined in:
- lib/test_support/automobile_record.rb
Class Method Summary collapse
Methods included from BrighterPlanet::Automobile
Class Method Details
.add_implicit_characteristics ⇒ Object
12 13 14 15 16 |
# File 'lib/test_support/automobile_record.rb', line 12 def add_implicit_characteristics decisions[:emission].committees.map(&:name).reject { |c| characteristics.keys.unshift(:emission).include? c }.each do |c| characterize { has c } end end |
.n ⇒ Object
8 9 10 |
# File 'lib/test_support/automobile_record.rb', line 8 def n new :make => AutomobileMake.find_by_name('Nissan') end |