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