Class: Spree::Admin::HomePageFeaturesController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/spree/admin/home_page_features_controller.rb

Instance Method Summary collapse

Instance Method Details

#collection_url(options = {}) ⇒ Object



22
23
24
# File 'app/controllers/spree/admin/home_page_features_controller.rb', line 22

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

#edit_object_url(object, options = {}) ⇒ Object



12
13
14
15
# File 'app/controllers/spree/admin/home_page_features_controller.rb', line 12

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

#model_classObject



4
5
6
# File 'app/controllers/spree/admin/home_page_features_controller.rb', line 4

def model_class
  Spree::HomePageFeature
end

#new_object_url(options = {}) ⇒ Object



8
9
10
# File 'app/controllers/spree/admin/home_page_features_controller.rb', line 8

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

#object_url(object = nil, options = {}) ⇒ Object



17
18
19
20
# File 'app/controllers/spree/admin/home_page_features_controller.rb', line 17

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