Skip to content

Commit 2c3b0d8

Browse files
committed
feat(Plugin Transaction Layer): initial implementation
1 parent 64f93aa commit 2c3b0d8

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module UpdateTags
2+
extend ActiveSupport::Concern
3+
4+
included do
5+
end
6+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'dry/transaction'
2+
3+
class NewTagFieldItemTransaction
4+
include Dry::Transaction
5+
6+
step :process
7+
8+
def process(field_item)
9+
Right(field_item)
10+
end
11+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'dry/transaction'
2+
3+
class NewUserFieldItemTransaction
4+
include Dry::Transaction
5+
6+
step :process
7+
8+
def process(field_item)
9+
Right(field_item)
10+
end
11+
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'dry/transaction'
2+
3+
class UpdateTagFieldItemTransaction
4+
include Dry::Transaction
5+
6+
step :process
7+
8+
def process(field_item)
9+
Right(field_item)
10+
end
11+
end

0 commit comments

Comments
 (0)