Skip to content

Commit

Permalink
[gio/ajey] fixing problem that is happening when host machine is modi…
Browse files Browse the repository at this point in the history
…fied
  • Loading branch information
giosakti committed Oct 1, 2018
1 parent 72d1c3b commit 9b12e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/host_machine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class HostMachine < ActiveRecord::Base
validates :name, presence: true

before_create :set_lower_case_name
before_save :set_host_access_key
before_create :set_host_access_key

def set_host_access_key
self.access_key = ROTP::Base32.random_base32
Expand Down

0 comments on commit 9b12e0a

Please sign in to comment.