mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
the list returned from slice needs to be cloned so it won't bomb out with lazy loading
This commit is contained in:
parent
045b371f62
commit
7ec4315065
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ module Fog
|
|||
include Fog::Attributes::InstanceMethods
|
||||
|
||||
Array.public_instance_methods(false).each do |method|
|
||||
unless [:reject, :select].include?(method.to_sym)
|
||||
unless [:reject, :select, :slice].include?(method.to_sym)
|
||||
class_eval <<-RUBY
|
||||
def #{method}(*args)
|
||||
unless @loaded
|
||||
|
@ -17,7 +17,7 @@ module Fog
|
|||
end
|
||||
end
|
||||
|
||||
%w[reject select].each do |method|
|
||||
%w[reject select slice].each do |method|
|
||||
class_eval <<-RUBY
|
||||
def #{method}(*args)
|
||||
unless @loaded
|
||||
|
|
Loading…
Reference in a new issue