lib/bauxite/actions/alias.rb in bauxite-0.3.1 vs lib/bauxite/actions/alias.rb in bauxite-0.4.0
- old
+ new
@@ -44,8 +44,8 @@
# # => this would expand to
# # echo "john, nice to see you!"
#
# :category: Action Methods
def alias_action(name, action, *args)
- @ctx.aliases[name] = ([action] + (args.map { |a| '"'+a.gsub('""', '')+'"' })).join(' ')
+ @ctx.add_alias(name, action, args)
end
end