Skip to content

Commit

Permalink
refactor(core): rename fixed to committed
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Sep 25, 2022
1 parent b169e9c commit 4967814
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/convenient_service/core/class_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module ClassMethods
def concerns(&block)
(@concerns ||= Entities::Concerns::MiddlewareStack.new(entity: self))
.tap { |stack| return stack unless block }
.tap { |stack| Commands::AssertConcernMiddlewareStackNotFixed.call(stack: stack) }
.tap { |stack| Commands::AssertConcernMiddlewareStackNotCommitted.call(stack: stack) }
.tap { |stack| Commands::ConfigureMiddlewareStack.call(stack: stack, block: block) }
end

Expand Down
2 changes: 1 addition & 1 deletion lib/convenient_service/core/commands.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "commands/assert_middleware_stack_not_fixed"
require_relative "commands/assert_middleware_stack_not_committed"
require_relative "commands/enable_concern_middleware_stack"
require_relative "commands/enable_method_middleware_stack"
require_relative "commands/configure_middleware_stack"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ConvenientService
module Core
module Commands
class AssertConcernMiddlewareStackNotFixed < Support::Command
class AssertConcernMiddlewareStackNotCommitted < Support::Command
attr_reader :stack

def initialize(stack:)
Expand Down
2 changes: 1 addition & 1 deletion lib/convenient_service/core/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Errors
class ConcernMiddlewareStackIsFixed < ConvenientService::Error
def initialize(stack:)
message = <<~TEXT
Concern middleware stack is already fixed.
Concern middleware stack is already committed.
Did you call `concerns(&block)' after using any plugin?
TEXT
Expand Down

0 comments on commit 4967814

Please sign in to comment.