Sha256: 713b5ff1c49b95125f96a1e620060eb31571df24796727ad357010894690153a
Contents?: true
Size: 387 Bytes
Versions: 1
Compression:
Stored size: 387 Bytes
Contents
class Song::New < Trailblazer::Operation step Model( Song, :new ) step Contract::Build(constant: Song::Contract::Form) step :set_current_user! def set_current_user!(_options, model:, current_user:, **) model.user_name = current_user end end class Song::Create < Trailblazer::Operation step Nested( Song::New ) step Contract::Validate() step Contract::Persist() end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trailblazer-future-2.1.0.rc1 | test/rails5.0/app/concepts/song/operation/create.rb |