Module: Errgonomic::Rails::ActiveRecordDelegateOptional
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/errgonomic/rails/active_record_delegate_optional.rb
Overview
Adds a delegate_optional class method in the spirit of Rails'
delegate, returning an Option instead of nil or NoMethodError when
the delegation target is absent.