Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Pull Enumerable inclusion up into Collectible #35

Merged
merged 2 commits into from Feb 2, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/nacre/concerns/collectible.rb
@@ -1,6 +1,9 @@
# frozen_string_literal: true
module Nacre
module Collectible

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra empty line detected at module body beginning.

include Enumerable

def self.included(base)
base.class_exec do
def initialize(resource_list = []) # rubocop:disable NestedMethodDefinition
Expand Down
1 change: 0 additions & 1 deletion lib/nacre/order/invoice_collection.rb
Expand Up @@ -3,7 +3,6 @@
module Nacre
class Order::InvoiceCollection
include Collectible
include Enumerable

def self.resource_class
Nacre::Order::Invoice
Expand Down
2 changes: 0 additions & 2 deletions lib/nacre/product/sales_channel_collection.rb
Expand Up @@ -2,9 +2,7 @@

module Nacre
class Product::SalesChannelCollection

include Collectible
include Enumerable
extend Inflectible

def self.resource_class
Expand Down