Sha256: 51bd862f2e11370babb5db059a425a40c7281595ff4400b2700c265c75c2d5e2
Contents?: true
Size: 529 Bytes
Versions: 6
Compression:
Stored size: 529 Bytes
Contents
module SimpleService class EnsureOrganizerIsValid < Organizer expects :expected_keys, :provided_keys, :provided_commands skip_validation true # false so as to not cause an infinite loop commands ValidatesExpectedKeys, ValidatesCommandsNotEmpty, ValidatesCommandsProperlyInherit def call super # dont return the keys within this internal service # so we dont pollute external service objects context.select { |k,v| !expects.include?(k) } end end end
Version data entries
6 entries across 6 versions & 1 rubygems