Module: Spree::Admin::MultiStoreHelper
- Defined in:
- app/helpers/spree/admin/multi_store_helper.rb
Instance Method Summary collapse
Instance Method Details
#available_stores ⇒ Object
4 5 6 7 8 |
# File 'app/helpers/spree/admin/multi_store_helper.rb', line 4 def available_stores scope = Spree::Store.accessible_by(current_ability, :manage).includes(:logo_attachment) scope = scope.includes(:default_custom_domain) if Spree::Store.reflect_on_association(:default_custom_domain) @available_stores ||= scope end |