Module: Auth::Images::ImagesHelper

Included in:
Auth::ImagesController
Defined in:
app/helpers/auth/images/images_helper.rb

Instance Method Summary collapse

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(options={})
    main_app.send("create_multiple_" + Auth.configuration.image_class.underscore.pluralize.gsub("\/","_")+ "_path",options)
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_pathObject

/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

#new_image_pathObject

get /new



4
5
6
# File 'app/helpers/auth/images/images_helper.rb', line 4

def new_image_path
  main_app.send(Auth::OmniAuth::Path.new_path(Auth.configuration.image_class))
end