lib/monarchy/acts_as_role.rb in monarchy-2.6.0 vs lib/monarchy/acts_as_role.rb in monarchy-2.6.1

- old
+ new

@@ -9,10 +9,10 @@ self.table_name = 'monarchy_roles' has_many :members_roles, dependent: :destroy, class_name: 'Monarchy::MembersRole' has_many :members, through: :members_roles, class_name: "::#{Monarchy.member_class}" - belongs_to :inherited_role, class_name: "::#{Monarchy.role_class}" + belongs_to :inherited_role, class_name: "::#{Monarchy.role_class}", optional: true after_create :default_inherited_role validates :name, presence: true validates :level, presence: true