Class: MuchRails::MuchRailsConfig
- Inherits:
-
Object
- Object
- MuchRails::MuchRailsConfig
- Includes:
- Config
- Defined in:
- lib/much-rails.rb
Defined Under Namespace
Classes: ActionConfig, LayoutConfig
Instance Method Summary collapse
- #add_destroy_service_validation_error(exception_class, &block) ⇒ Object
- #add_save_service_validation_error(exception_class, &block) ⇒ Object
Instance Method Details
#add_destroy_service_validation_error(exception_class, &block) ⇒ Object
55 56 57 |
# File 'lib/much-rails.rb', line 55 def add_destroy_service_validation_error(exception_class, &block) MuchRails::DestroyService::ValidationErrors.add(exception_class, &block) end |
#add_save_service_validation_error(exception_class, &block) ⇒ Object
51 52 53 |
# File 'lib/much-rails.rb', line 51 def add_save_service_validation_error(exception_class, &block) MuchRails::SaveService::ValidationErrors.add(exception_class, &block) end |