Skip to content

Commit

Permalink
add attr_accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Dec 30, 2019
1 parent 0b07081 commit 18b632f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/inventory_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class InventoryFile < ApplicationRecord
end
validates_attachment_content_type :inventory, content_type: ['text/csv', 'text/plain', 'text/tab-separated-values']
validates_attachment_presence :inventory, on: :create
attr_accessor :library_id

paginates_per 10

Expand Down

0 comments on commit 18b632f

Please sign in to comment.