Sha256: 3e9211f949c699c83f92fe374b1e3a6624f26d8b01ffd48645328007b9c4e0f1
Contents?: true
Size: 176 Bytes
Versions: 13
Compression:
Stored size: 176 Bytes
Contents
class Role < ActiveRecord::Base has_and_belongs_to_many :users, :join_table => 'user_roles' def self.[](role) first(:conditions => ['name = ?', role.to_s ]) end end
Version data entries
13 entries across 13 versions & 2 rubygems