Commit eb66bb8bc0d075e61517a0b3c2fff5fb58800a29
1 parent
3133df27
Exists in
master
and in
23 other branches
product-categories-block: change the way display_options is extended
The previous way was making the constant be extended for the superclass to. ActionItem3188
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/product_categories_block.rb
| ... | ... | @@ -33,7 +33,7 @@ class ProductCategoriesBlock < Block |
| 33 | 33 | end |
| 34 | 34 | end |
| 35 | 35 | |
| 36 | - DISPLAY_OPTIONS['catalog_only'] = __('Only on the catalog') | |
| 36 | + DISPLAY_OPTIONS = DISPLAY_OPTIONS.merge('catalog_only' => _('Only on the catalog')) | |
| 37 | 37 | |
| 38 | 38 | def display |
| 39 | 39 | settings[:display].nil? ? 'catalog_only' : super | ... | ... |