lib/monarchy/acts_as_role.rb in monarchy-2.4.0 vs lib/monarchy/acts_as_role.rb in monarchy-2.5.0

- old
+ new

@@ -12,9 +12,12 @@ 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 end