Skip to content

Commit

Permalink
Enable SolidusPaperclip as the default gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Nov 23, 2018
1 parent c93822c commit 0eb9e0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/app/models/spree/variant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def variant_properties
# The gallery for the variant, which represents all the images
# associated with it
#
# @return [Spree::Gallery] the media for a variant
# @return [Spree::Config.variant_gallery_class] the media for a variant
def gallery
@gallery ||= Spree::Config.variant_gallery_class.new(self)
end
Expand Down
4 changes: 2 additions & 2 deletions core/lib/spree/app_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,14 @@ def payment_canceller
# @!attribute [rw] variant_gallery_class
# @return [Class] a class that implements an `images` method and returns an
# Enumerable of images adhering to the present_image_class interface
class_name_attribute :variant_gallery_class, default: 'Spree::Gallery::VariantGallery'
class_name_attribute :variant_gallery_class, default: 'SolidusPaperclip::Gallery::Variant'

# Allows providing your own class for image galleries on Products
#
# @!attribute [rw] product_gallery_class
# @return [Class] a class that implements an `images` method and returns an
# Enumerable of images adhering to the present_image_class interface
class_name_attribute :product_gallery_class, default: 'Spree::Gallery::ProductGallery'
class_name_attribute :product_gallery_class, default: 'SolidusPaperclip::Gallery::Product'

# Allows providing your own class instance for generating order numbers.
#
Expand Down

0 comments on commit 0eb9e0d

Please sign in to comment.