allow to match category names on import/sync
This commit is contained in:
parent
16b78ba2a0
commit
d9c61b2db3
8 changed files with 30 additions and 6 deletions
|
|
@ -19,6 +19,7 @@ class SharedArticle < ActiveRecord::Base
|
|||
:deposit => deposit,
|
||||
:unit_quantity => unit_quantity,
|
||||
:order_number => number,
|
||||
:article_category => ArticleCategory.find_match(category),
|
||||
# convert to db-compatible-string
|
||||
:shared_updated_on => updated_on.to_formatted_s(:db)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue