Commit 792ed99d4041f084b6a198ca66b24c02f8471192

Authored by Rafael Manzo
1 parent 5ae94e43

There's no show action for ReadingsController

Signed off by: Guilherme Rojas V. de Lima <guilhermehrojas@gmail.com>
Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/controllers/readings_controller.rb
1 1 include OwnershipAuthentication
2 2  
3 3 class ReadingsController < ApplicationController
4   - before_action :authenticate_user!, except: [:show, :index]
5   - before_action :set_reading, only: [:show, :edit, :update, :destroy]
6   - before_action :reading_owner?, except: [:show]
  4 + before_action :authenticate_user!, except: [:index]
  5 + before_action :set_reading, only: [:edit, :update, :destroy]
  6 + before_action :reading_owner?, except: [:new]
7 7  
8 8 def new
9 9 @reading_group_id = params[:reading_group_id]
... ...