Sha256: f0b4ebf099d4f7d9b62609f1b8ac57cb2e125754d2b270fd8365bc522ca741c6

Contents?: true

Size: 212 Bytes

Versions: 3

Compression:

Stored size: 212 Bytes

Contents

class Function < ActiveRecord::Base
  has_many :groups, :dependent => :destroy
  has_many :roles, :through => :groups
  has_many :routepaths
  validates :name, :presence => {:message => "名称不能为空"}
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
admin-sys-1.0.2 app/models/function.rb
admin-sys-1.0.1 app/models/function.rb
admin-sys-1.0.0 app/models/function.rb