Skip to content

Commit

Permalink
Merge branch 'dc-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLemayian committed Jan 27, 2016
2 parents ac232a3 + 5018748 commit a4a780c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/actions/document_import.rb
Expand Up @@ -38,7 +38,7 @@ def split
if duplicate = document.duplicates.first
Rails.logger.info "Duplicate found, copying pdf"
asset_store.copy_pdf( duplicate, document, access )
document.update_attribute(page_count: duplicate.page_count) if build_pages
document.update_attributes(page_count: duplicate.page_count) if build_pages
else
Rails.logger.info "Building PDF"
File.open(file, 'r') do |f|
Expand Down

0 comments on commit a4a780c

Please sign in to comment.