minerva 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/minerva/base/assignments.rb +62 -0
- data/app/controllers/concerns/minerva/base/interfaces.rb +62 -0
- data/app/controllers/concerns/minerva/base/states.rb +62 -0
- data/app/controllers/concerns/minerva/base/statuses.rb +62 -0
- data/app/controllers/concerns/minerva/base/workflows.rb +62 -0
- data/app/controllers/minerva/assignments_controller.rb +1 -56
- data/app/controllers/minerva/interfaces_controller.rb +1 -56
- data/app/controllers/minerva/states_controller.rb +1 -56
- data/app/controllers/minerva/statuses_controller.rb +1 -56
- data/app/controllers/minerva/workflows_controller.rb +1 -56
- data/lib/minerva/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23d01ff6ea67ffc6df3bc1e82e25f0069c182cf6caec35d435cd006234d4d2ab
|
4
|
+
data.tar.gz: 8c5288ba7e97a75ecbe42fc9208053b31742c7a813eef40a36ed0ac7d2c76309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 956b639ea0b5828c7311d3c10f557bb3243b8168a8e6652dd107acf1267ed5d793d6593ea65d6988e3817547757b0e1a0ca5c7f9d727de0f8c7253b902a27c0e
|
7
|
+
data.tar.gz: 3e83736e9c8684d20830b3dfb5577fc9ca55aba44ca71c0c0dc9378f668511d535dda338dde9773dfe256502737ad8bd25394d9a0ba7145b38d3f82d26f2c8ce
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Minerva::Base::Assignments
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
before_action :set_assignment, only: [:show, :edit, :update, :destroy]
|
6
|
+
end
|
7
|
+
|
8
|
+
# GET /assignments
|
9
|
+
def index
|
10
|
+
@assignments = Minerva::Assignment.all
|
11
|
+
end
|
12
|
+
|
13
|
+
# GET /assignments/1
|
14
|
+
def show
|
15
|
+
end
|
16
|
+
|
17
|
+
# GET /assignments/new
|
18
|
+
def new
|
19
|
+
@assignment = Minerva::Assignment.new
|
20
|
+
end
|
21
|
+
|
22
|
+
# GET /assignments/1/edit
|
23
|
+
def edit
|
24
|
+
end
|
25
|
+
|
26
|
+
# POST /assignments
|
27
|
+
def create
|
28
|
+
@assignment = Minerva::Assignment.new(assignment_params)
|
29
|
+
|
30
|
+
if @assignment.save
|
31
|
+
redirect_to @assignment, notice: 'Assignment was successfully created.'
|
32
|
+
else
|
33
|
+
render :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# PATCH/PUT /assignments/1
|
38
|
+
def update
|
39
|
+
if @assignment.update(assignment_params)
|
40
|
+
redirect_to @assignment, notice: 'Assignment was successfully updated.'
|
41
|
+
else
|
42
|
+
render :edit
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DELETE /assignments/1
|
47
|
+
def destroy
|
48
|
+
@assignment.destroy
|
49
|
+
redirect_to assignments_url, notice: 'Assignment was successfully destroyed.'
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
# Use callbacks to share common setup or constraints between actions.
|
54
|
+
def set_assignment
|
55
|
+
@assignment = Minerva::Assignment.find(params[:id])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Only allow a trusted parameter "white list" through.
|
59
|
+
def assignment_params
|
60
|
+
params.require(:assignment).permit(:title, :interface_id, :automated)
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Minerva::Base::Interfaces
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
before_action :set_interface, only: [:show, :edit, :update, :destroy]
|
6
|
+
end
|
7
|
+
|
8
|
+
# GET /interfaces
|
9
|
+
def index
|
10
|
+
@interfaces = Minerva::Interface.all
|
11
|
+
end
|
12
|
+
|
13
|
+
# GET /interfaces/1
|
14
|
+
def show
|
15
|
+
end
|
16
|
+
|
17
|
+
# GET /interfaces/new
|
18
|
+
def new
|
19
|
+
@interface = Minerva::Interface.new
|
20
|
+
end
|
21
|
+
|
22
|
+
# GET /interfaces/1/edit
|
23
|
+
def edit
|
24
|
+
end
|
25
|
+
|
26
|
+
# POST /interfaces
|
27
|
+
def create
|
28
|
+
@interface = Minerva::Interface.new(interface_params)
|
29
|
+
|
30
|
+
if @interface.save
|
31
|
+
redirect_to @interface, notice: 'Interface was successfully created.'
|
32
|
+
else
|
33
|
+
render :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# PATCH/PUT /interfaces/1
|
38
|
+
def update
|
39
|
+
if @interface.update(interface_params)
|
40
|
+
redirect_to @interface, notice: 'Interface was successfully updated.'
|
41
|
+
else
|
42
|
+
render :edit
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DELETE /interfaces/1
|
47
|
+
def destroy
|
48
|
+
@interface.destroy
|
49
|
+
redirect_to interfaces_url, notice: 'Interface was successfully destroyed.'
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
# Use callbacks to share common setup or constraints between actions.
|
54
|
+
def set_interface
|
55
|
+
@interface = Minerva::Interface.find(params[:id])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Only allow a trusted parameter "white list" through.
|
59
|
+
def interface_params
|
60
|
+
params.require(:interface).permit(:title, :code_point)
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Minerva::Base::States
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
before_action :set_state, only: [:show, :edit, :update, :destroy]
|
6
|
+
end
|
7
|
+
|
8
|
+
# GET /states
|
9
|
+
def index
|
10
|
+
@states = Minerva::State.all
|
11
|
+
end
|
12
|
+
|
13
|
+
# GET /states/1
|
14
|
+
def show
|
15
|
+
end
|
16
|
+
|
17
|
+
# GET /states/new
|
18
|
+
def new
|
19
|
+
@state = Minerva::State.new
|
20
|
+
end
|
21
|
+
|
22
|
+
# GET /states/1/edit
|
23
|
+
def edit
|
24
|
+
end
|
25
|
+
|
26
|
+
# POST /states
|
27
|
+
def create
|
28
|
+
@state = Minerva::State.new(state_params)
|
29
|
+
|
30
|
+
if @state.save
|
31
|
+
redirect_to @state, notice: 'State was successfully created.'
|
32
|
+
else
|
33
|
+
render :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# PATCH/PUT /states/1
|
38
|
+
def update
|
39
|
+
if @state.update(state_params)
|
40
|
+
redirect_to @state, notice: 'State was successfully updated.'
|
41
|
+
else
|
42
|
+
render :edit
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DELETE /states/1
|
47
|
+
def destroy
|
48
|
+
@state.destroy
|
49
|
+
redirect_to states_url, notice: 'State was successfully destroyed.'
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
# Use callbacks to share common setup or constraints between actions.
|
54
|
+
def set_state
|
55
|
+
@state = Minerva::State.find(params[:id])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Only allow a trusted parameter "white list" through.
|
59
|
+
def state_params
|
60
|
+
params.require(:state).permit(:creator_id, :user_id, :role_id, :work_id, :assignment_id, :status_id)
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Minerva::Base::Statuses
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
before_action :set_status, only: [:show, :edit, :update, :destroy]
|
6
|
+
end
|
7
|
+
|
8
|
+
# GET /statuses
|
9
|
+
def index
|
10
|
+
@statuses = Minerva::Status.all
|
11
|
+
end
|
12
|
+
|
13
|
+
# GET /statuses/1
|
14
|
+
def show
|
15
|
+
end
|
16
|
+
|
17
|
+
# GET /statuses/new
|
18
|
+
def new
|
19
|
+
@status = Minerva::Status.new
|
20
|
+
end
|
21
|
+
|
22
|
+
# GET /statuses/1/edit
|
23
|
+
def edit
|
24
|
+
end
|
25
|
+
|
26
|
+
# POST /statuses
|
27
|
+
def create
|
28
|
+
@status = Minerva::Status.new(status_params)
|
29
|
+
|
30
|
+
if @status.save
|
31
|
+
redirect_to @status, notice: 'Status was successfully created.'
|
32
|
+
else
|
33
|
+
render :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# PATCH/PUT /statuses/1
|
38
|
+
def update
|
39
|
+
if @status.update(status_params)
|
40
|
+
redirect_to @status, notice: 'Status was successfully updated.'
|
41
|
+
else
|
42
|
+
render :edit
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DELETE /statuses/1
|
47
|
+
def destroy
|
48
|
+
@status.destroy
|
49
|
+
redirect_to statuses_url, notice: 'Status was successfully destroyed.'
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
# Use callbacks to share common setup or constraints between actions.
|
54
|
+
def set_status
|
55
|
+
@status = Minerva::Status.find(params[:id])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Only allow a trusted parameter "white list" through.
|
59
|
+
def status_params
|
60
|
+
params.require(:status).permit(:title)
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Minerva::Base::Workflows
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
included do
|
5
|
+
before_action :set_workflow, only: [:show, :edit, :update, :destroy]
|
6
|
+
end
|
7
|
+
|
8
|
+
# GET /workflows
|
9
|
+
def index
|
10
|
+
@workflows = Minerva::Workflow.all
|
11
|
+
end
|
12
|
+
|
13
|
+
# GET /workflows/1
|
14
|
+
def show
|
15
|
+
end
|
16
|
+
|
17
|
+
# GET /workflows/new
|
18
|
+
def new
|
19
|
+
@workflow = Minerva::Workflow.new
|
20
|
+
end
|
21
|
+
|
22
|
+
# GET /workflows/1/edit
|
23
|
+
def edit
|
24
|
+
end
|
25
|
+
|
26
|
+
# POST /workflows
|
27
|
+
def create
|
28
|
+
@workflow = Minerva::Workflow.new(workflow_params)
|
29
|
+
|
30
|
+
if @workflow.save
|
31
|
+
redirect_to @workflow, notice: 'Workflow was successfully created.'
|
32
|
+
else
|
33
|
+
render :new
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# PATCH/PUT /workflows/1
|
38
|
+
def update
|
39
|
+
if @workflow.update(workflow_params)
|
40
|
+
redirect_to @workflow, notice: 'Workflow was successfully updated.'
|
41
|
+
else
|
42
|
+
render :edit
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# DELETE /workflows/1
|
47
|
+
def destroy
|
48
|
+
@workflow.destroy
|
49
|
+
redirect_to workflows_url, notice: 'Workflow was successfully destroyed.'
|
50
|
+
end
|
51
|
+
|
52
|
+
private
|
53
|
+
# Use callbacks to share common setup or constraints between actions.
|
54
|
+
def set_workflow
|
55
|
+
@workflow = Minerva::Workflow.find(params[:id])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Only allow a trusted parameter "white list" through.
|
59
|
+
def workflow_params
|
60
|
+
params.require(:workflow).permit(:creator_id, :project_id, :task_list, :title, :ordered)
|
61
|
+
end
|
62
|
+
end
|
@@ -2,61 +2,6 @@ require_dependency "minerva/application_controller"
|
|
2
2
|
|
3
3
|
module Minerva
|
4
4
|
class AssignmentsController < ApplicationController
|
5
|
-
|
6
|
-
|
7
|
-
# GET /assignments
|
8
|
-
def index
|
9
|
-
@assignments = Assignment.all
|
10
|
-
end
|
11
|
-
|
12
|
-
# GET /assignments/1
|
13
|
-
def show
|
14
|
-
end
|
15
|
-
|
16
|
-
# GET /assignments/new
|
17
|
-
def new
|
18
|
-
@assignment = Assignment.new
|
19
|
-
end
|
20
|
-
|
21
|
-
# GET /assignments/1/edit
|
22
|
-
def edit
|
23
|
-
end
|
24
|
-
|
25
|
-
# POST /assignments
|
26
|
-
def create
|
27
|
-
@assignment = Assignment.new(assignment_params)
|
28
|
-
|
29
|
-
if @assignment.save
|
30
|
-
redirect_to @assignment, notice: 'Assignment was successfully created.'
|
31
|
-
else
|
32
|
-
render :new
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# PATCH/PUT /assignments/1
|
37
|
-
def update
|
38
|
-
if @assignment.update(assignment_params)
|
39
|
-
redirect_to @assignment, notice: 'Assignment was successfully updated.'
|
40
|
-
else
|
41
|
-
render :edit
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# DELETE /assignments/1
|
46
|
-
def destroy
|
47
|
-
@assignment.destroy
|
48
|
-
redirect_to assignments_url, notice: 'Assignment was successfully destroyed.'
|
49
|
-
end
|
50
|
-
|
51
|
-
private
|
52
|
-
# Use callbacks to share common setup or constraints between actions.
|
53
|
-
def set_assignment
|
54
|
-
@assignment = Assignment.find(params[:id])
|
55
|
-
end
|
56
|
-
|
57
|
-
# Only allow a trusted parameter "white list" through.
|
58
|
-
def assignment_params
|
59
|
-
params.require(:assignment).permit(:title, :interface_id, :automated)
|
60
|
-
end
|
5
|
+
include Minerva::Base::Assignments
|
61
6
|
end
|
62
7
|
end
|
@@ -2,61 +2,6 @@ require_dependency "minerva/application_controller"
|
|
2
2
|
|
3
3
|
module Minerva
|
4
4
|
class InterfacesController < ApplicationController
|
5
|
-
|
6
|
-
|
7
|
-
# GET /interfaces
|
8
|
-
def index
|
9
|
-
@interfaces = Interface.all
|
10
|
-
end
|
11
|
-
|
12
|
-
# GET /interfaces/1
|
13
|
-
def show
|
14
|
-
end
|
15
|
-
|
16
|
-
# GET /interfaces/new
|
17
|
-
def new
|
18
|
-
@interface = Interface.new
|
19
|
-
end
|
20
|
-
|
21
|
-
# GET /interfaces/1/edit
|
22
|
-
def edit
|
23
|
-
end
|
24
|
-
|
25
|
-
# POST /interfaces
|
26
|
-
def create
|
27
|
-
@interface = Interface.new(interface_params)
|
28
|
-
|
29
|
-
if @interface.save
|
30
|
-
redirect_to @interface, notice: 'Interface was successfully created.'
|
31
|
-
else
|
32
|
-
render :new
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# PATCH/PUT /interfaces/1
|
37
|
-
def update
|
38
|
-
if @interface.update(interface_params)
|
39
|
-
redirect_to @interface, notice: 'Interface was successfully updated.'
|
40
|
-
else
|
41
|
-
render :edit
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# DELETE /interfaces/1
|
46
|
-
def destroy
|
47
|
-
@interface.destroy
|
48
|
-
redirect_to interfaces_url, notice: 'Interface was successfully destroyed.'
|
49
|
-
end
|
50
|
-
|
51
|
-
private
|
52
|
-
# Use callbacks to share common setup or constraints between actions.
|
53
|
-
def set_interface
|
54
|
-
@interface = Interface.find(params[:id])
|
55
|
-
end
|
56
|
-
|
57
|
-
# Only allow a trusted parameter "white list" through.
|
58
|
-
def interface_params
|
59
|
-
params.require(:interface).permit(:title, :code_point)
|
60
|
-
end
|
5
|
+
include Minerva::Base::Interfaces
|
61
6
|
end
|
62
7
|
end
|
@@ -2,61 +2,6 @@ require_dependency "minerva/application_controller"
|
|
2
2
|
|
3
3
|
module Minerva
|
4
4
|
class StatesController < ApplicationController
|
5
|
-
|
6
|
-
|
7
|
-
# GET /states
|
8
|
-
def index
|
9
|
-
@states = State.all
|
10
|
-
end
|
11
|
-
|
12
|
-
# GET /states/1
|
13
|
-
def show
|
14
|
-
end
|
15
|
-
|
16
|
-
# GET /states/new
|
17
|
-
def new
|
18
|
-
@state = State.new
|
19
|
-
end
|
20
|
-
|
21
|
-
# GET /states/1/edit
|
22
|
-
def edit
|
23
|
-
end
|
24
|
-
|
25
|
-
# POST /states
|
26
|
-
def create
|
27
|
-
@state = State.new(state_params)
|
28
|
-
|
29
|
-
if @state.save
|
30
|
-
redirect_to @state, notice: 'State was successfully created.'
|
31
|
-
else
|
32
|
-
render :new
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# PATCH/PUT /states/1
|
37
|
-
def update
|
38
|
-
if @state.update(state_params)
|
39
|
-
redirect_to @state, notice: 'State was successfully updated.'
|
40
|
-
else
|
41
|
-
render :edit
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# DELETE /states/1
|
46
|
-
def destroy
|
47
|
-
@state.destroy
|
48
|
-
redirect_to states_url, notice: 'State was successfully destroyed.'
|
49
|
-
end
|
50
|
-
|
51
|
-
private
|
52
|
-
# Use callbacks to share common setup or constraints between actions.
|
53
|
-
def set_state
|
54
|
-
@state = State.find(params[:id])
|
55
|
-
end
|
56
|
-
|
57
|
-
# Only allow a trusted parameter "white list" through.
|
58
|
-
def state_params
|
59
|
-
params.require(:state).permit(:creator_id, :user_id, :role_id, :work_id, :assignment_id, :status_id)
|
60
|
-
end
|
5
|
+
include Minerva::Base::States
|
61
6
|
end
|
62
7
|
end
|
@@ -2,61 +2,6 @@ require_dependency "minerva/application_controller"
|
|
2
2
|
|
3
3
|
module Minerva
|
4
4
|
class StatusesController < ApplicationController
|
5
|
-
|
6
|
-
|
7
|
-
# GET /statuses
|
8
|
-
def index
|
9
|
-
@statuses = Status.all
|
10
|
-
end
|
11
|
-
|
12
|
-
# GET /statuses/1
|
13
|
-
def show
|
14
|
-
end
|
15
|
-
|
16
|
-
# GET /statuses/new
|
17
|
-
def new
|
18
|
-
@status = Status.new
|
19
|
-
end
|
20
|
-
|
21
|
-
# GET /statuses/1/edit
|
22
|
-
def edit
|
23
|
-
end
|
24
|
-
|
25
|
-
# POST /statuses
|
26
|
-
def create
|
27
|
-
@status = Status.new(status_params)
|
28
|
-
|
29
|
-
if @status.save
|
30
|
-
redirect_to @status, notice: 'Status was successfully created.'
|
31
|
-
else
|
32
|
-
render :new
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# PATCH/PUT /statuses/1
|
37
|
-
def update
|
38
|
-
if @status.update(status_params)
|
39
|
-
redirect_to @status, notice: 'Status was successfully updated.'
|
40
|
-
else
|
41
|
-
render :edit
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# DELETE /statuses/1
|
46
|
-
def destroy
|
47
|
-
@status.destroy
|
48
|
-
redirect_to statuses_url, notice: 'Status was successfully destroyed.'
|
49
|
-
end
|
50
|
-
|
51
|
-
private
|
52
|
-
# Use callbacks to share common setup or constraints between actions.
|
53
|
-
def set_status
|
54
|
-
@status = Status.find(params[:id])
|
55
|
-
end
|
56
|
-
|
57
|
-
# Only allow a trusted parameter "white list" through.
|
58
|
-
def status_params
|
59
|
-
params.require(:status).permit(:title)
|
60
|
-
end
|
5
|
+
include Minerva::Base::Statuses
|
61
6
|
end
|
62
7
|
end
|
@@ -2,61 +2,6 @@ require_dependency "minerva/application_controller"
|
|
2
2
|
|
3
3
|
module Minerva
|
4
4
|
class WorkflowsController < ApplicationController
|
5
|
-
|
6
|
-
|
7
|
-
# GET /workflows
|
8
|
-
def index
|
9
|
-
@workflows = Workflow.all
|
10
|
-
end
|
11
|
-
|
12
|
-
# GET /workflows/1
|
13
|
-
def show
|
14
|
-
end
|
15
|
-
|
16
|
-
# GET /workflows/new
|
17
|
-
def new
|
18
|
-
@workflow = Workflow.new
|
19
|
-
end
|
20
|
-
|
21
|
-
# GET /workflows/1/edit
|
22
|
-
def edit
|
23
|
-
end
|
24
|
-
|
25
|
-
# POST /workflows
|
26
|
-
def create
|
27
|
-
@workflow = Workflow.new(workflow_params)
|
28
|
-
|
29
|
-
if @workflow.save
|
30
|
-
redirect_to @workflow, notice: 'Workflow was successfully created.'
|
31
|
-
else
|
32
|
-
render :new
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# PATCH/PUT /workflows/1
|
37
|
-
def update
|
38
|
-
if @workflow.update(workflow_params)
|
39
|
-
redirect_to @workflow, notice: 'Workflow was successfully updated.'
|
40
|
-
else
|
41
|
-
render :edit
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# DELETE /workflows/1
|
46
|
-
def destroy
|
47
|
-
@workflow.destroy
|
48
|
-
redirect_to workflows_url, notice: 'Workflow was successfully destroyed.'
|
49
|
-
end
|
50
|
-
|
51
|
-
private
|
52
|
-
# Use callbacks to share common setup or constraints between actions.
|
53
|
-
def set_workflow
|
54
|
-
@workflow = Workflow.find(params[:id])
|
55
|
-
end
|
56
|
-
|
57
|
-
# Only allow a trusted parameter "white list" through.
|
58
|
-
def workflow_params
|
59
|
-
params.require(:workflow).permit(:creator_id, :project_id, :task_list, :title, :ordered)
|
60
|
-
end
|
5
|
+
include Minerva::Base::Workflows
|
61
6
|
end
|
62
7
|
end
|
data/lib/minerva/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minerva
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cliff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -133,6 +133,11 @@ files:
|
|
133
133
|
- app/assets/stylesheets/minerva/statuses.css
|
134
134
|
- app/assets/stylesheets/minerva/workflows.css
|
135
135
|
- app/assets/stylesheets/scaffold.css
|
136
|
+
- app/controllers/concerns/minerva/base/assignments.rb
|
137
|
+
- app/controllers/concerns/minerva/base/interfaces.rb
|
138
|
+
- app/controllers/concerns/minerva/base/states.rb
|
139
|
+
- app/controllers/concerns/minerva/base/statuses.rb
|
140
|
+
- app/controllers/concerns/minerva/base/workflows.rb
|
136
141
|
- app/controllers/minerva/application_controller.rb
|
137
142
|
- app/controllers/minerva/assignments_controller.rb
|
138
143
|
- app/controllers/minerva/interfaces_controller.rb
|