Sha256: 51eecdaf9261b64ca319184216a82dea42a5e673e67e780458dfdb840c204e2d
Contents?: true
Size: 331 Bytes
Versions: 2
Compression:
Stored size: 331 Bytes
Contents
module AtYourService extend ActiveSupport::Concern def self.with(options = {}) @@strict = options.fetch(:strict, false) return self end included do if @@strict include Virtus.model(strict: true) else include Virtus.model end def self.call(*args) new(*args).call end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
at_your_service-1.1.0 | lib/at_your_service/service.rb |
at_your_service-1.0.0 | lib/at_your_service/service.rb |