Sha256: 1b145bdfe36e769d1b1569ff176220d5a9752a479bdf44d3abbd01be36142e59

Contents?: true

Size: 188 Bytes

Versions: 2

Compression:

Stored size: 188 Bytes

Contents

Party.class_eval do
  has_security_roles
  has_many :users, :dependent => :destroy

  # Helper method as most parties will have only one user
  def user
    users.first
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erp_tech_svcs-4.2.0 app/models/extensions/party.rb
erp_tech_svcs-4.0.0 app/models/extensions/party.rb