Module: Auth::Shopping::Places::PlacesHelper
- Defined in:
- app/helpers/auth/shopping/places/places_helper.rb
Instance Method Summary collapse
-
#edit_place_path(place) ⇒ Object
/shopping/places/:id/edit.
-
#new_place_path ⇒ Object
get /new.
-
#place_path(place) ⇒ Object
(PUT/PATCH/GET) - individual place.
-
#places_path ⇒ Object
/places (GET - all places /CREATE - individual place).
Instance Method Details
#edit_place_path(place) ⇒ Object
/shopping/places/:id/edit
21 22 23 |
# File 'app/helpers/auth/shopping/places/places_helper.rb', line 21 def edit_place_path(place) main_app.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.place_class),place) end |
#new_place_path ⇒ Object
get /new
4 5 6 |
# File 'app/helpers/auth/shopping/places/places_helper.rb', line 4 def new_place_path main_app.send(Auth::OmniAuth::Path.new_path(Auth.configuration.place_class)) end |
#place_path(place) ⇒ Object
(PUT/PATCH/GET) - individual place
9 10 11 12 |
# File 'app/helpers/auth/shopping/places/places_helper.rb', line 9 def place_path(place) main_app.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.place_class),place) end |
#places_path ⇒ Object
/places (GET - all places /CREATE - individual place)
16 17 18 |
# File 'app/helpers/auth/shopping/places/places_helper.rb', line 16 def places_path main_app.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.place_class)) end |