Class: Spree::Admin::HomePageFeaturesController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Spree::Admin::HomePageFeaturesController
- Defined in:
- app/controllers/spree/admin/home_page_features_controller.rb
Instance Method Summary collapse
- #collection_url(options = {}) ⇒ Object
- #edit_object_url(object, options = {}) ⇒ Object
- #model_class ⇒ Object
- #new_object_url(options = {}) ⇒ Object
- #object_url(object = nil, options = {}) ⇒ Object
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( = {}) 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, = {}) target = object ? object : @object spree.edit_admin_home_page_feature_url target end |
#model_class ⇒ Object
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( = {}) 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, = {}) target = object ? object : @object spree.edit_admin_home_page_feature_url target end |