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
|
|
@ -22,6 +22,9 @@ ActiveSupport.on_load(:after_initialize) do
|
|||
SharedArticle.class_eval do
|
||||
alias_attribute :number, :order_number
|
||||
alias_attribute :updated_on, :updated_at
|
||||
def category
|
||||
ArticleCategory.find(article_category_id).name
|
||||
end
|
||||
def self.find_by_number(n)
|
||||
find_by_order_number(n)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue