app/models/extensions/party.rb in erp_tech_svcs-3.1.8 vs app/models/extensions/party.rb in erp_tech_svcs-4.0.0

- old
+ new

@@ -1,4 +1,9 @@ Party.class_eval do has_security_roles - has_one :user, :dependent => :destroy + has_many :users, :dependent => :destroy + + # Helper method as most parties will have only one user + def user + users.first + end end