Class: Cats::Core::RoleMenu
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Cats::Core::RoleMenu
- Defined in:
- app/models/cats/core/role_menu.rb
Instance Method Summary collapse
Instance Method Details
#validate_role_and_menu ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/models/cats/core/role_menu.rb', line 10 def return unless role.present? && .present? return if role.application_module_id == .application_module.id errors.add(:base, "Application module does not match for role and menu") end |