Module: Auth::Images::ImagesHelper
- Included in:
- Auth::ImagesController
- Defined in:
- app/helpers/auth/images/images_helper.rb
Instance Method Summary collapse
- #create_multiple_images_path(options = {}) ⇒ Object
-
#edit_image_path(image) ⇒ Object
/shopping/images/:id/edit.
-
#image_path(image) ⇒ Object
(PUT/PATCH/GET) - individual image.
-
#images_path ⇒ Object
/images (GET - all images /CREATE - individual image).
-
#new_image_path ⇒ Object
get /new.
Instance Method Details
#create_multiple_images_path(options = {}) ⇒ Object
25 26 27 |
# File 'app/helpers/auth/images/images_helper.rb', line 25 def create_multiple_images_path(={}) main_app.send("create_multiple_" + Auth.configuration.image_class.underscore.pluralize.gsub("\/","_")+ "_path",) end |
#edit_image_path(image) ⇒ Object
/shopping/images/:id/edit
21 22 23 |
# File 'app/helpers/auth/images/images_helper.rb', line 21 def edit_image_path(image) main_app.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.image_class),image) end |
#image_path(image) ⇒ Object
(PUT/PATCH/GET) - individual image
9 10 11 12 |
# File 'app/helpers/auth/images/images_helper.rb', line 9 def image_path(image) main_app.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.image_class),image) end |
#images_path ⇒ Object
/images (GET - all images /CREATE - individual image)
16 17 18 |
# File 'app/helpers/auth/images/images_helper.rb', line 16 def images_path main_app.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.image_class)) end |