File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ class TimesheetController < ApplicationController
3
3
4
4
layout 'base'
5
5
if Rails ::VERSION ::MAJOR < 5 # < Rails 5
6
- before_filter :get_list_size
7
- before_filter :get_precision
8
- before_filter :get_activities
6
+ before_action :get_list_size
7
+ before_action :get_precision
8
+ before_action :get_activities
9
9
else # >= Rails 5
10
10
before_action :get_list_size
11
11
before_action :get_precision
@@ -37,7 +37,7 @@ def index
37
37
38
38
def report
39
39
if params && params [ :timesheet ]
40
- @timesheet = Timesheet . new ( params [ :timesheet ] )
40
+ @timesheet = Timesheet . new ( params . require ( :timesheet ) . permit! )
41
41
else
42
42
redirect_to :action => 'index'
43
43
return
Original file line number Diff line number Diff line change 1
- class CreateEnumPrices < ActiveRecord ::Migration
1
+ class CreateEnumPrices < ActiveRecord ::Migration [ 4.2 ]
2
2
def change
3
3
create_table :prices do |t |
4
4
t . references :enumerations
You can’t perform that action at this time.
0 commit comments