Sha256: 171e1d993709758977af2eea92fbe106991bcb73934770a49854b27f906c52d1

Contents?: true

Size: 246 Bytes

Versions: 14

Compression:

Stored size: 246 Bytes

Contents

class GroupUser < ActiveRecord::Base
  belongs_to :group
  belongs_to :user
  has_many :role_group_users
  accepts_nested_attributes_for :role_group_users, reject_if: :all_blank, allow_destroy: :true
  scope :active, -> { where active: true }
end

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
curupira-0.1.7 spec/tmp/app/models/group_user.rb
curupira-0.1.7 spec/dummy/app/models/group_user.rb
curupira-0.1.6 spec/tmp/app/models/group_user.rb
curupira-0.1.6 spec/dummy/app/models/group_user.rb
curupira-0.1.4 spec/dummy/app/models/group_user.rb
curupira-0.1.4 spec/tmp/app/models/group_user.rb
curupira-0.1.3 spec/tmp/app/models/group_user.rb
curupira-0.1.3 spec/dummy/app/models/group_user.rb
curupira-0.1.2 spec/tmp/app/models/group_user.rb
curupira-0.1.2 spec/dummy/app/models/group_user.rb
curupira-0.1.1 spec/tmp/app/models/group_user.rb
curupira-0.1.1 spec/dummy/app/models/group_user.rb
curupira-0.1.0 spec/dummy/app/models/group_user.rb
curupira-0.1.0 spec/tmp/app/models/group_user.rb