lib/redbreast/helpers/general.rb in redbreast-0.1.1 vs lib/redbreast/helpers/general.rb in redbreast-0.1.2

- old
+ new

@@ -43,10 +43,10 @@ def clean_variable_name(name) clean_name = name .split(/[^0-9a-zA-Z]/) .reject { |c| c.empty? } .each_with_index - .map { |value, index| index == 0 ? value.downcase : value.capitalize } + .map { |value, index| index == 0 ? value.tap { |char| char[0] = char[0].downcase } : value.capitalize } .join escaped_underscore = escape_with_underscore_if_needed(clean_name) escape_keyword_if_needed(escaped_underscore) end \ No newline at end of file