Skip to content

Cannot define multiple 'included' blocks for a Concern #188

Closed
@andriytyurnikov

Description

@andriytyurnikov

Got error message:
Unable to annotate magaz_core/concerns/shopping_cart.rb: Cannot define multiple 'included' blocks for a Concern

Code of that concern:

module MagazCore
  module Concerns
    module ShoppingCart
      extend ActiveSupport::Concern

      included do
        delegate :each, :empty?, to: :line_items
      end

      def items
        line_items
      end

    end
  end
end

looks like namespaces confuse annotate_models

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions