Class: Spree::Api::V2::Platform::ImagesController
- Inherits:
-
ResourceController
- Object
- ActionController::API
- BaseController
- ResourceController
- Spree::Api::V2::Platform::ImagesController
- Defined in:
- app/controllers/spree/api/v2/platform/images_controller.rb
Instance Method Summary collapse
-
#model_class ⇒ Object
before_action :set_viewable.
- #spree_permitted_attributes ⇒ Object
Methods inherited from ResourceController
Methods included from Caching
#collection_cache_key, #collection_cache_opts
Methods included from CollectionOptionsHelpers
#collection_links, #collection_meta, #collection_permitted_params
Methods inherited from BaseController
Instance Method Details
#model_class ⇒ Object
before_action :set_viewable
8 9 10 |
# File 'app/controllers/spree/api/v2/platform/images_controller.rb', line 8 def model_class Spree::Image end |
#spree_permitted_attributes ⇒ Object
12 13 14 |
# File 'app/controllers/spree/api/v2/platform/images_controller.rb', line 12 def spree_permitted_attributes super + [:attachment] end |