Skip to content

Commit

Permalink
it should be a class method
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Jul 3, 2016
1 parent 703f358 commit b3af8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/enju_inventory/enju_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module EnjuItem
integer :inventory_file_ids, :multiple => true
end

def inventory_items(inventory_file, mode = 'not_on_shelf')
def self.inventory_items(inventory_file, mode = 'not_on_shelf')
item_ids = Item.pluck(:id)
inventory_item_ids = inventory_file.items.pluck('items.id')
case mode
Expand Down

0 comments on commit b3af8ac

Please sign in to comment.