Sha256: dcab4c4c95eefd61c059c4aba8ce3c82a7875c44611708c7249f2919609fbea0

Contents?: true

Size: 287 Bytes

Versions: 7

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

module SolidusReviews
  module Spree
    module UserDecorator
      def self.prepended(base)
        base.class_eval do
          has_many :reviews, class_name: 'Spree::Review'
        end
      end

      ::Spree.user_class.prepend self
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_reviews-1.7.0 app/decorators/models/solidus_reviews/spree/user_decorator.rb
solidus_reviews-1.6.0 app/decorators/models/solidus_reviews/spree/user_decorator.rb
solidus_reviews-1.5.0 app/decorators/models/solidus_reviews/spree/user_decorator.rb
solidus_reviews-1.4.1 app/decorators/models/solidus_reviews/spree/user_decorator.rb
solidus_reviews-1.4.0 app/decorators/models/solidus_reviews/spree/user_decorator.rb
solidus_reviews-1.3.0 app/decorators/models/solidus_reviews/spree/user_decorator.rb
solidus_reviews-1.2.0 app/decorators/models/solidus_reviews/spree/user_decorator.rb