mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update vehicle.rb
This commit is contained in:
@@ -60,13 +60,13 @@ class Vehicle < ActiveRecord::Base
|
||||
return @details.doors if @details
|
||||
end
|
||||
|
||||
# Force Upper Case for VIN numbers
|
||||
# Force Upper Case for make numbers
|
||||
def make=(val)
|
||||
# The to_s is in case you get nil/non-string
|
||||
write_attribute(:make, val.to_s.titleize)
|
||||
end
|
||||
|
||||
# Force Upper Case for VIN numbers
|
||||
# Force Upper Case for model numbers
|
||||
def model=(val)
|
||||
# The to_s is in case you get nil/non-string
|
||||
write_attribute(:model, val.to_s.titleize)
|
||||
|
||||
Reference in New Issue
Block a user