| Class | DisplayToNew |
| In: |
app/models/display_to_new.rb
|
| Parent: | Display |
新規作成画面のモデル
| BUTTON_TYPE | = | [ ] |
| ITEM_DEFAULT_OPTIONS | = | Display::ITEM_DEFAULT_OPTIONS.merge({ :input_type => "text", }).freeze |
権限にしたがって利用可能かどうかを判定する。
# File app/models/display_to_new.rb, line 46
46: def available?
47: product.modifiable?
48: end
種類の名前を返す。
# File app/models/display_to_new.rb, line 41
41: def type_name
42: s_("Display|New")
43: end