Sha256: 7060ae5210e0c3e758a3488d57866789ccbd458133b82e54c191a9b6558566c8

Contents?: true

Size: 684 Bytes

Versions: 7

Compression:

Stored size: 684 Bytes

Contents

module Spree
  module Admin
    class HomePageFeaturesController < Spree::Admin::ResourceController
      def model_class
        Spree::HomePageFeature
      end

      def new_object_url(options = {})
        spree.new_admin_home_page_feature_path
      end

      def edit_object_url(object, options = {})
        target = object ? object : @object
        spree.edit_admin_home_page_feature_url target
      end

      def object_url(object = nil, options = {})
        target = object ? object : @object
        spree.edit_admin_home_page_feature_url target
      end

      def collection_url(options = {})
        spree.admin_home_page_features_path
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spree_home_page_features-1.2.5 app/controllers/spree/admin/home_page_features_controller.rb
spree_home_page_features-1.2.4 app/controllers/spree/admin/home_page_features_controller.rb
spree_home_page_features-1.2.3 app/controllers/spree/admin/home_page_features_controller.rb
spree_home_page_features-1.2.2 app/controllers/spree/admin/home_page_features_controller.rb
spree_home_page_features-1.2.1 app/controllers/spree/admin/home_page_features_controller.rb
spree_home_page_features-1.2.0 app/controllers/spree/admin/home_page_features_controller.rb
spree_home_page_features-1.1.3 app/controllers/spree/admin/home_page_features_controller.rb