Sha256: 57a4de75883a6f9915d0f5f9adf347a33e5040a655c637f068633c96bf4de734
Contents?: true
Size: 673 Bytes
Versions: 18
Compression:
Stored size: 673 Bytes
Contents
# frozen_string_literal: true require "much-rails/mixin" require "much-rails/records/validate_destroy" module MuchRails; end module MuchRails::Records; end # MuchRails::Records::AlwaysDestroyable is a mix-in to always enable destroying # a record. It mixes-in MuchRails::Records::ValidateDestroy and hard-codes # never adding destruction error messages. module MuchRails::Records::AlwaysDestroyable include MuchRails::Mixin mixin_included do include MuchRails::Records::ValidateDestroy end mixin_instance_methods do def destruction_error_messages [] end private def validate_destroy # Do nothing on purpose. end end end
Version data entries
18 entries across 18 versions & 1 rubygems