Closed jcavalieri closed 3 years ago
The existing controller methods are helpful, so making the public can change code that looks like this:
# -- Custom Response -- config.custom = lambda { |controller, checker| return controller.render(plain: 'Everything is awesome!') unless checker.errored? controller.send(:verbose?) ? controller.send(:verbose_error, checker) : controller.send(:head_error) }
Can instead look like this:
# -- Custom Response -- config.custom = lambda { |controller, checker| return controller.render(plain: 'Everything is awesome!') unless checker.errored? controller.verbose? ? controller.verbose_error(checker) : controller.head_error }
Thoughts?
The existing controller methods are helpful, so making the public can change code that looks like this:
Can instead look like this:
Thoughts?