Archived
rails 4 and tons of stuff
This commit is contained in:
@@ -4,7 +4,7 @@ class Forumgroup < ActiveRecord::Base
|
||||
belongs_to :role_write, class_name: "Role", foreign_key: "role_write_id"
|
||||
accepts_nested_attributes_for :forums
|
||||
|
||||
attr_accessible :name, :position, :role_read, :role_write, :role_read_id, :role_write_id
|
||||
|
||||
|
||||
validates_presence_of :name, :position
|
||||
validates_length_of :name, in: 2..20
|
||||
|
||||
Reference in New Issue
Block a user