Skip to content

Commit

Permalink
add attribute aliases for ip and ip6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Schuller committed Aug 29, 2019
1 parent f255d3d commit e3d8088
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 e3d8088

Please sign in to comment.