Class: SolidusPromotions::Admin::BaseController

Inherits:
Spree::Admin::ResourceController
  • Object
show all
Defined in:
lib/controllers/backend/solidus_promotions/admin/base_controller.rb

Instance Method Summary collapse

Instance Method Details

#parent_model_nameObject



10
11
12
# File 'lib/controllers/backend/solidus_promotions/admin/base_controller.rb', line 10

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

#routes_proxyObject



6
7
8
# File 'lib/controllers/backend/solidus_promotions/admin/base_controller.rb', line 6

def routes_proxy
  solidus_promotions
end