Update vehicle.rb

This commit is contained in:
2018-03-03 13:11:58 -05:00
committed by GitHub
parent 667d0bfa97
commit 17183f9643

View File

@@ -49,7 +49,9 @@ class Vehicle < ActiveRecord::Base
# returns the drive of the vehicle i.e. 2 wheel, 4 wheel, ect. # returns the drive of the vehicle i.e. 2 wheel, 4 wheel, ect.
def drive def drive
return @details.drive_type if @details #todo fix this
#return @details.drive_type if @details
return nil
end end
# returns the number of doors of the vehicle # returns the number of doors of the vehicle