Skip to content

Commit

Permalink
make collection into an accessor, fixes respond_to in attributes and …
Browse files Browse the repository at this point in the history
…should be more performant
  • Loading branch information
geemus committed Oct 28, 2010
1 parent 5fddabd commit f9eafff
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lib/fog/core/model.rb
Expand Up @@ -4,11 +4,7 @@ class Model
extend Fog::Attributes::ClassMethods
include Fog::Attributes::InstanceMethods

attr_accessor :connection

def collection
@collection
end
attr_accessor :collection, :connection

def initialize(new_attributes = {})
merge_attributes(new_attributes)
Expand Down Expand Up @@ -48,11 +44,5 @@ def wait_for(timeout=600, interval=1, &block)
end
end

private

def collection=(new_collection)
@collection = new_collection
end

end
end

0 comments on commit f9eafff

Please sign in to comment.