From ef63e32d616ac0621238e02b598c845334ce00b3 Mon Sep 17 00:00:00 2001 From: Mike Foley Date: Tue, 9 Sep 2014 09:23:23 -0700 Subject: [PATCH] Move alias_method_chain from Ruby to Rails snippets It's technically part of Rails ActiveSupport, not base Ruby --- snippets/rails.snippets | 2 ++ snippets/ruby.snippets | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/rails.snippets b/snippets/rails.snippets index d8fe2be..3a72bfd 100644 --- a/snippets/rails.snippets +++ b/snippets/rails.snippets @@ -109,6 +109,8 @@ snippet dele delegate .. to delegate :${1:methods}, to: :${0:object} snippet dele delegate .. to .. prefix .. allow_nil delegate :${1:methods}, to: :${2:object}, prefix: :${3:prefix}, allow_nil: ${0:allow_nil} +snippet amc + alias_method_chain :${1:method_name}, :${0:feature} snippet flash flash[:${1:notice}] = '${0}' snippet habtm diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index ba761fd..fd4172c 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -209,8 +209,6 @@ snippet defds def_delegators :${1:@del_obj}, :${0:del_methods} snippet am alias_method :${1:new_name}, :${0:old_name} -snippet amc - alias_method_chain :${1:method_name}, :${0:feature} snippet app if __FILE__ == $PROGRAM_NAME ${0}