mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Replace alias with alias_method
Done with `rubocop --auto-correct --only Alias`
This commit is contained in:
parent
6c6a118234
commit
814cb82f22
42 changed files with 61 additions and 61 deletions
|
|
@ -18,7 +18,7 @@ module Fog
|
|||
def drive=(new_drive)
|
||||
attributes[:drive] = new_drive
|
||||
end
|
||||
alias :volume :drive
|
||||
alias_method :volume, :drive
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ module Fog
|
|||
true
|
||||
end
|
||||
|
||||
alias :delete :destroy
|
||||
alias_method :delete, :destroy
|
||||
|
||||
def start(start_params={})
|
||||
requires :identity
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ module Fog
|
|||
merge_attributes(new_attributes)
|
||||
end
|
||||
|
||||
alias :save :update
|
||||
alias_method :save, :update
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ module Fog
|
|||
true
|
||||
end
|
||||
|
||||
alias :delete :destroy
|
||||
alias_method :delete, :destroy
|
||||
|
||||
def clone(clone_params={})
|
||||
requires :identity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue