Skip to content

Commit

Permalink
Merge pull request #4 from bytemine/ip-attribute-aliases
Browse files Browse the repository at this point in the history
add attribute aliases for ip and ip6
  • Loading branch information
fkr authored Aug 29, 2019
2 parents 13f44db + e3d8088 commit 8ba5f94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/concerns/fog_extensions/gridscale/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Server
extend ActiveSupport::Concern

attr_accessor :object_uuid, :mac, :server_uuid, :interfaces_attributes, :ipv4_address, :ipv6_address
alias_attribute :ip, :ipv4_address
alias_attribute :ip6, :ipv6_address

def state
requires :status
Expand Down

0 comments on commit 8ba5f94

Please sign in to comment.