We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The Subroutine::AssociationFields module provides an interface for loading ActiveRecord instances easily.
Subroutine::AssociationFields
class UserUpdateOp < ::Subroutine::Op include ::Subroutine::AssociationFields association :user with_options groups: "update" do string :first_name string :last_name end protected def perform user.update_attributes(update_params) end end
class RecordTouchOp < ::Subroutine::Op include ::Subroutine::AssociationFields association :record, polymorphic: true protected def perform record.touch end end