Permalink
Browse files

[dnsimple|dns] small model fixes

  • Loading branch information...
geemus committed Feb 25, 2011
1 parent f60ad1c commit def3be4bb32df54b89287dd98552c3e08802d134
Showing with 3 additions and 3 deletions.
  1. +1 −1 Gemfile.lock
  2. +1 −1 lib/fog/dns/models/dnsimple/zone.rb
  3. +1 −1 lib/fog/dns/models/dnsimple/zones.rb
View
@@ -15,7 +15,7 @@ GEM
remote: http://rubygems.org/
specs:
builder (3.0.0)
- excon (0.5.5)
+ excon (0.5.6)
formatador (0.0.16)
json (1.5.1)
mime-types (1.16)
@@ -9,7 +9,7 @@ class Zone < Fog::Model
identity :id
- attribute :domain, :aliases => "name"
+ attribute :domain, :aliases => [:name, 'name']
attribute :created_at
attribute :updated_at
@@ -15,7 +15,7 @@ def all
end
def get(zone_id)
- data = connection.get_domain(zone_id).body["domain"]
+ data = connection.get_domain(zone_id).body['domain']
new(data)
rescue Excon::Errors::NotFound
nil

0 comments on commit def3be4

Please sign in to comment.