Merge pull request #443 from m1foley/ruby_alias_method_chain

Change variable name in Ruby alias_method_chain
This commit is contained in:
Eustáquio Rangel 2014-09-09 14:23:15 -03:00
commit eeeaa9e176
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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:name}, :${0:feature}
snippet app
if __FILE__ == $PROGRAM_NAME
${0}