Sha256: 8d4400800e7ef8778b9ab08724ca6ddb4f66a84b6884340b812d9750e97632e0

Contents?: true

Size: 249 Bytes

Versions: 4

Compression:

Stored size: 249 Bytes

Contents

module Radmin
  def self.table_name_prefix; "radmin_"; end
  
  class Role < ActiveRecord::Base
    has_many :assignments, :class_name => "Radmin::Assignment", :foreign_key => "radmin_role_id"
    has_many :users, :through => :assignments
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radmin-0.3.3 app/models/radmin/role.rb
radmin-0.3.2 app/models/radmin/role.rb
radmin-0.3.1 app/models/radmin/role.rb
radmin-0.2.0 app/models/radmin/role.rb