Sha256: b71334fa1135464ef554dc5ff887691b3f5714999ce3510cf1161fed919714ca

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

class Spree::Admin::PagesController < Spree::Admin::ResourceController
  private

  # Set some default attributes
  def build_resource
    super.tap do |resource|
      if resource.stores.blank?
        resource.stores << Spree::Store.default
      end
    end
  end

  def collection
    super.ordered_by_position
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_static_content-2.0.0 lib/controllers/backend/spree/admin/pages_controller.rb