Sha256: 557a2dee400ca1a5396f0cf13cf096cea35f0f2479f7e171a519ec251eb18afd

Contents?: true

Size: 218 Bytes

Versions: 1

Compression:

Stored size: 218 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

1 entries across 1 versions & 1 rubygems

Version Path
admin-sys-1.1.0 app/models/function.rb