Sha256: fc1de28876c3ec50fd6d5da31a0f794ba3afa3772ea617e22ce48c317a176e9b
Contents?: true
Size: 217 Bytes
Versions: 3
Compression:
Stored size: 217 Bytes
Contents
class <%= role_class %> < ActiveRecord::Base scope :named, lambda{|role_names| where(:name.in => role_names.flatten)} has_many :<%= user_class.pluralize.underscore %> validates :name, :uniqueness => true end
Version data entries
3 entries across 3 versions & 1 rubygems