Sha256: 72d4ee9b7505b3b07a3fac6f8302747f64efd80fd082d6d725f2f51a26467c63
Contents?: true
Size: 432 Bytes
Versions: 5
Compression:
Stored size: 432 Bytes
Contents
class Mdm::ModuleAuthor < ActiveRecord::Base self.table_name = 'module_authors' # # Associations # belongs_to :module_detail, :class_name => 'Mdm::ModuleDetail' # # Mass Assignment Security # attr_accessible :email attr_accessible :name # # Validations # validates :module_detail, :presence => true validates :name, :presence => true ActiveSupport.run_load_hooks(:mdm_module_author, self) end
Version data entries
5 entries across 5 versions & 1 rubygems