Change variable name in Ruby alias_method_chain

`method_name` is more clear than `name`, and follows the style of the other snippets.

Also moving the snippet to the Rails snippets, because it's technically part of Rails ActiveSupport, not base Ruby.