lib/monarchy/acts_as_role.rb in monarchy-2.5.0 vs lib/monarchy/acts_as_role.rb in monarchy-2.6.0
- old
+ new
@@ -12,10 +12,10 @@
has_many :members, through: :members_roles, class_name: "::#{Monarchy.member_class}"
belongs_to :inherited_role, class_name: "::#{Monarchy.role_class}"
after_create :default_inherited_role
-
+
validates :name, presence: true
validates :level, presence: true
include Monarchy::ActsAsRole::InstanceMethods
end