Class: MuchRails::MuchRailsConfig

Inherits:
Object
  • Object
show all
Includes:
Config
Defined in:
lib/much-rails.rb

Defined Under Namespace

Classes: ActionConfig, LayoutConfig

Instance Method Summary collapse

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