Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/controllers/shift_commerce/reviews_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true
module ShiftCommerce
class ReviewsController < ApplicationController
before_action :authenticate_account!, only: [:new]

def new
end
end
end

2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Rails.application.routes.draw do
get "static_pages/:id", to: "static_pages#show", as: :pages
get "bundles/:id", to: "bundles#show", as: :bundles
get "products/:product_id/reviews/new", to: "reviews#new", as: :new_product_review
post "products/:product_id/reviews", to: "reviews#create", as: :product_reviews
end
2 changes: 1 addition & 1 deletion lib/shift_commerce/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ShiftCommerce
VERSION = '0.6.11'
VERSION = '0.6.12'
end
2 changes: 2 additions & 0 deletions spec/dummy/app/controllers/reviews_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class ReviewsController < ShiftCommerce::ReviewsController
end