Class: Spree::Core::Configuration

Inherits:
Preferences::RuntimeConfiguration show all
Defined in:
lib/spree/core/configuration.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Preferences::RuntimeConfiguration

#configure, defaults, deprecations, #get, #initialize, preference, #reset, #set

Constructor Details

This class inherits a constructor from Spree::Preferences::RuntimeConfiguration

Instance Attribute Details

#product_image_variant_sizesObject



69
70
71
72
73
74
75
76
77
78
# File 'lib/spree/core/configuration.rb', line 69

def product_image_variant_sizes
  @product_image_variant_sizes ||= {
    mini: [128, 128],
    small: [256, 256],
    medium: [400, 400],
    large: [720, 720],
    xlarge: [2000, 2000],
    og_image: [1200, 630]
  }
end

#searcher_class=(value) ⇒ Object (writeonly)

Sets the attribute searcher_class

Parameters:

  • value

    the value to set the attribute searcher_class to.



113
114
115
# File 'lib/spree/core/configuration.rb', line 113

def searcher_class=(value)
  @searcher_class = value
end