Merge pull request #443 from m1foley/ruby_alias_method_chain
Change variable name in Ruby alias_method_chain
This commit is contained in:
commit
eeeaa9e176
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user