lib/jss/api_object/extension_attribute.rb in ruby-jss-0.6.5 vs lib/jss/api_object/extension_attribute.rb in ruby-jss-0.6.6
- old
+ new
@@ -165,10 +165,10 @@
@input_type = DEFAULT_INPUT_TYPE
end
### the name of the EA might have spaces and caps, which the will come to us as symbols with the spaces
### as underscores, like this.
- @symbolized_name = @name.gsub(' ','_').to_sym
+ @symbolized_name = @name.gsub(/-| /,'_').to_sym
end # init
#####################################
### Public Instance Methods