Sha256: 99759e46fb6d22dba9722c9fc58dc939b94ae79237c2826d7b63e008768cf5ce

Contents?: true

Size: 828 Bytes

Versions: 2

Compression:

Stored size: 828 Bytes

Contents

class Spree::ReviewsConfiguration < Spree::Preferences::Configuration
  def self.boolean_preferences
    %w(include_unapproved_reviews feedback_rating show_email require_login track_locale)
  end

  # include non-approved reviews in (public) listings
  preference :include_unapproved_reviews, :boolean, :default => false

  # control how many reviews are shown in summaries etc.
  preference :preview_size, :integer, :default => 3

  # show a reviewer's email address
  preference :show_email, :boolean, :default => false

  # show helpfullness rating form elements
  preference :feedback_rating, :boolean, :default => false

  # require login to post reviews
  preference :require_login, :boolean, :default => true

  # whether to keep track of the reviewer's locale
  preference :track_locale, :boolean, :default => false
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jiffyshirts_spree_reviews-2.3.1.2 app/models/spree/reviews_configuration.rb
jiffyshirts_spree_reviews-2.3.1.1 app/models/spree/reviews_configuration.rb