Class | DisplayToShow
In: | app/models/display_to_show.rb
Parent: | Display

詳細画面のモデル。

### Methods

available? button_close? type_name

### Constants

BUTTON_TYPE | = | [ [N_("Display|Edit"), "edit"], [N_("Display|Delete"), "delete"], [N_("Display|Copy"), "copy"], ]

### Public Instance methods

available?()

権限にしたがって利用可能かどうかを判定する。

[Source]

        # File app/models/display_to_show.rb, line 49
    49:   def available?
    50:     product.visible?
    51:   end

button_close?()

「閉じる」ボタンの有無を返す。

[Source]

        # File app/models/display_to_show.rb, line 54
    54:   def button_close?
    55:     true
    56:   end

type_name()

種類の名前を返す。

[Source]

        # File app/models/display_to_show.rb, line 44
    44:   def type_name
    45:     s_("Display|Detail")
    46:   end

[Validate]