Revision 71291a46
Added by Dmitri Dolguikh over 11 years ago
- ID 71291a465615aa349733dc700b6fedb34a37dc8b
app/models/parameter.rb | ||
---|---|---|
end
|
||
|
||
def strip_whitespaces
|
||
self.name.strip! unless name.blank?
|
||
self.name = self.name.strip unless name.blank? # when name string comes from a hash key, it's frozen and cannot be modified
|
||
self.value.strip! unless value.blank?
|
||
end
|
||
end
|
Also available in: Unified diff
fixes #1834 to get foreman running under ruby 1.9.3