Sha256: bd4f8667ed55272ded736aca173f94a96f807172e9b0ccdb55aa57e9ac51ccee

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

module SolidusPromotions
  module Admin
    class BaseController < Spree::Admin::ResourceController
      def routes_proxy
        solidus_promotions
      end

      def parent_model_name
        self.class.parent_data[:model_name].gsub("solidus_promotions/", "")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_promotions-4.5.1 lib/controllers/backend/solidus_promotions/admin/base_controller.rb
solidus_promotions-4.5.0 lib/controllers/backend/solidus_promotions/admin/base_controller.rb
solidus_promotions-4.4.2 lib/controllers/backend/solidus_promotions/admin/base_controller.rb
solidus_promotions-4.4.1 lib/controllers/backend/solidus_promotions/admin/base_controller.rb
solidus_promotions-4.4.0 lib/controllers/backend/solidus_promotions/admin/base_controller.rb