* Refactored routes some
* Fixed some major bugs with pools and pool versioning
This commit is contained in:
@@ -3,4 +3,10 @@ class PoolVersion < ActiveRecord::Base
|
||||
|
||||
validates_presence_of :updater_id, :updater_ip_addr
|
||||
belongs_to :pool
|
||||
before_validation :initialize_updater
|
||||
|
||||
def initialize_updater
|
||||
self.updater_id = CurrentUser.id
|
||||
self.updater_ip_addr = CurrentUser.ip_addr
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user