Remove tnoda/ruby-electric-on from ruby-mode-hook.

ruby-compilation will toggle ruby-electric-mode.
Extract the tnoda/subword-mode-enable function and create a new entry for this function.
Add tnoda/subword-mode-enable to ruby-mode-hook.