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

Commit

Permalink
Pull Enumerable inclusion up into Collectible (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
allolex committed Feb 2, 2017
1 parent 8a79c90 commit 19eb2e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/nacre/concerns/collectible.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true
module Nacre
module Collectible
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

module Nacre
class Product::SalesChannelCollection

include Collectible
include Enumerable
extend Inflectible

def self.resource_class
Expand Down

0 comments on commit 19eb2e9

Please sign in to comment.