Only upcase languages if they exist...
This commit is contained in:
parent
0982be8579
commit
3d9bef366c
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ class Person < ActiveRecord::Base
|
||||||
alias_attribute :affiliation, :company
|
alias_attribute :affiliation, :company
|
||||||
|
|
||||||
def languages_upcase
|
def languages_upcase
|
||||||
self.languages = self.languages.upcase
|
self.languages = self.languages.upcase if self.languages
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue