./lib/animoto/support/visual.rb in animoto-1.0.0 vs ./lib/animoto/support/visual.rb in animoto-1.1.0

- old
+ new

@@ -21,10 +21,10 @@ # # @return [Hash{String=>Object}] this Visual as a Hash def to_hash hash = super rescue {} hash['spotlit'] = spotlit? unless @spotlit.nil? - hash['type'] = self.class.name.split('::').last.gsub(/(^)?([A-Z])/) { "#{'_' unless $1}#{$2.downcase}" } + hash['type'] = self.class.name.split('::').last.underscore hash end end end \ No newline at end of file