Sha256: 5de6bfe6020e198dd626da29778c840bf8ab7b41d2e7c02e82037162185f7661

Contents?: true

Size: 1.34 KB

Versions: 7

Compression:

Stored size: 1.34 KB

Contents

module Spree
  class BackendConfiguration < Preferences::Configuration
    preference :locale, :string, default: Rails.application.config.i18n.default_locale
    preference :variants_per_page, :integer, default: Kaminari.config.default_per_page
    preference :menus_per_page, :integer, default: Kaminari.config.default_per_page

    ORDER_TABS         ||= [:orders, :payments, :creditcard_payments,
                            :shipments, :credit_cards, :return_authorizations,
                            :customer_returns, :adjustments, :customer_details]
    PRODUCT_TABS       ||= [:products, :option_types, :properties, :prototypes,
                            :variants, :product_properties, :taxonomies,
                            :taxons]
    REPORT_TABS        ||= [:reports]
    CONFIGURATION_TABS ||= [:configurations, :general_settings, :tax_categories,
                            :tax_rates, :zones, :countries, :states,
                            :payment_methods, :shipping_methods,
                            :shipping_categories, :stock_transfers,
                            :stock_locations, :trackers, :refund_reasons,
                            :reimbursement_types, :return_authorization_reasons,
                            :stores]
    PROMOTION_TABS     ||= [:promotions, :promotion_categories]
    USER_TABS          ||= [:users]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_backend-4.3.3 app/models/spree/backend_configuration.rb
spree_backend-4.3.2 app/models/spree/backend_configuration.rb
spree_backend-4.3.1 app/models/spree/backend_configuration.rb
spree_backend-4.3.0 app/models/spree/backend_configuration.rb
spree_backend-4.3.0.rc3 app/models/spree/backend_configuration.rb
spree_backend-4.3.0.rc2 app/models/spree/backend_configuration.rb
spree_backend-4.3.0.rc1 app/models/spree/backend_configuration.rb