app/models/role.rb in enju_leaf-1.1.0.rc16 vs app/models/role.rb in enju_leaf-1.1.0.rc17
- old
+ new
@@ -1,6 +1,5 @@
class Role < ActiveRecord::Base
- attr_accessible :name, :display_name, :note
include MasterModel
default_scope { order("roles.position") }
validates :name, presence: true, format: { with: /\A[A-Za-z][a-z_,]*[a-z]\Z/ }
has_many :user_has_roles
has_many :users, through: :user_has_roles