Class | DisplayToListShared
In: | app/models/display_to_list_shared.rb
Parent: | DisplayToList

一覧画面(共有一覧)のモデル

### Methods

export

### Public Instance methods

export(person_id)

情報をコピーした新しい個人一覧 display_to_list_private を返す。

[Source]

        # File app/models/display_to_list_shared.rb, line 41
    41:   def export(person_id)
    42:     display = DisplayToListPrivate.new
    43:     display.attributes = attributes
    44:     display.person_id = person_id
    45:     m = PoMessageSingular.find(name_po)
    46:     n = m.private_copy
    47:     display.name_po = n.id
    48:     display.save!
    49:     items.each {|item| item.private_copy(display.id)}
    50:     return display
    51:   end

[Validate]