Skip to content

Commit 3386bca

Browse files
committed
fix error
1 parent 945efbf commit 3386bca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/fx/command_recorder.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ def invert_update_trigger(args)
5757

5858
private
5959

60-
MESSAGE_IRREVERSIBLE = "%<method>s is reversible only if given a `revert_to_version`".freeze
60+
MESSAGE_IRREVERSIBLE = "`%s` is reversible only if given a `revert_to_version`".freeze
6161

6262
def perform_inversion(method, args)
63-
arguments = Fx::CommandRecorder::Arguments.new(args)
63+
arguments = Arguments.new(args)
6464

6565
if arguments.revert_to_version.nil?
66-
raise ActiveRecord::IrreversibleMigration, format(MESSAGE_IRREVERSIBLE % {method: method})
66+
raise ActiveRecord::IrreversibleMigration, format(MESSAGE_IRREVERSIBLE, method)
6767
end
6868

6969
[method, arguments.invert_version.to_a]
@@ -87,7 +87,7 @@ def revert_to_version
8787
end
8888

8989
def invert_version
90-
Arguments.new([function, options_for_revert])
90+
self.class.new([function, options_for_revert])
9191
end
9292

9393
def to_a

0 commit comments

Comments
 (0)