Sha256: a0832bee2574e3aca806f5864e1884d337394ee040353dfcd812329eeadc36f8

Contents?: true

Size: 881 Bytes

Versions: 55

Compression:

Stored size: 881 Bytes

Contents

module Auth::Images::ImagesHelper

	## get /new
	def new_image_path
      main_app.send(Auth::OmniAuth::Path.new_path(Auth.configuration.image_class))
    end

    ## (PUT/PATCH/GET) - individual image
    def image_path(image)
    	
    	main_app.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.image_class),image)
    end

	
	##/images (GET - all images /CREATE - individual image) 
	def images_path
    	main_app.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.image_class))
    end

    ##/shopping/images/:id/edit
    def edit_image_path(image)
    	main_app.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.image_class),image)
    end

    def create_multiple_images_path(options={})
        main_app.send("create_multiple_" + Auth.configuration.image_class.underscore.pluralize.gsub("\/","_")+ "_path",options)
    end

end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.9 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.8 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.7 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.6 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.5 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.4 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.3 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.2 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.1 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.5.0 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.9 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.8 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.7 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.6 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.5 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.4 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.3 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.2 app/helpers/auth/images/images_helper.rb
wordjelly-auth-1.4.0 app/helpers/auth/images/images_helper.rb