ecm_courses2_backend 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ecm/courses/backend/course_categories_controller.rb +4 -0
- data/app/controllers/ecm/courses/backend/course_dates_controller.rb +6 -0
- data/app/controllers/ecm/courses/backend/courses_controller.rb +12 -2
- data/app/views/ecm/courses/backend/course_categories/_form.haml +4 -0
- data/app/views/ecm/courses/backend/course_categories/_table.haml +5 -0
- data/app/views/ecm/courses/backend/course_dates/_form.haml +4 -0
- data/app/views/ecm/courses/backend/course_dates/_table.haml +5 -0
- data/app/views/ecm/courses/backend/courses/_form.haml +4 -0
- data/app/views/ecm/courses/backend/courses/_table.haml +6 -0
- data/config/routes.rb +3 -1
- data/lib/ecm/courses/backend/version.rb +1 -1
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36921f73ecd62f971de9e02f06a4f7da6b46828b
|
4
|
+
data.tar.gz: ee4cf11d86791e6bdaa538047338e51afb34344d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3a87a4db4fd9f16e28b45c86eb8b2a4ba75d846d9679bc73dcfd789a6587ab82b5d9ef7cd3e598ad33c02555701bc328a19826d3aeb6f7f7c6fce2c073e936b
|
7
|
+
data.tar.gz: 93cd0c24b31802b421e6dfecb4f3c1937b8fd45501c4bdc81d03fe0addefc027df9937d688a88b1e6a2b4352b3335acd0352e25c2452cf8357ec5142819dfb76
|
@@ -2,14 +2,24 @@ module Ecm
|
|
2
2
|
module Courses
|
3
3
|
module Backend
|
4
4
|
class CoursesController < Itsf::Backend::Resource::BaseController
|
5
|
+
include Controller::ActsAsListConcern
|
6
|
+
|
5
7
|
def self.resource_class
|
6
8
|
Ecm::Courses::Course
|
7
9
|
end
|
8
10
|
|
9
11
|
private
|
10
12
|
|
11
|
-
def
|
12
|
-
|
13
|
+
def load_scope
|
14
|
+
resource_class.friendly
|
15
|
+
end
|
16
|
+
|
17
|
+
# def load_resource
|
18
|
+
# load_scope.friendly.find(params[:id])
|
19
|
+
# end
|
20
|
+
|
21
|
+
def permitted_params
|
22
|
+
params.require(:course).permit(:course_category_id, :locale, :name, :description)
|
13
23
|
end
|
14
24
|
end
|
15
25
|
end
|
data/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_courses2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -60,6 +60,12 @@ files:
|
|
60
60
|
- app/controllers/ecm/courses/backend/home_controller.rb
|
61
61
|
- app/helpers/ecm/courses/backend/application_helper.rb
|
62
62
|
- app/policies/ecm/courses/backend/engine_policy.rb
|
63
|
+
- app/views/ecm/courses/backend/course_categories/_form.haml
|
64
|
+
- app/views/ecm/courses/backend/course_categories/_table.haml
|
65
|
+
- app/views/ecm/courses/backend/course_dates/_form.haml
|
66
|
+
- app/views/ecm/courses/backend/course_dates/_table.haml
|
67
|
+
- app/views/ecm/courses/backend/courses/_form.haml
|
68
|
+
- app/views/ecm/courses/backend/courses/_table.haml
|
63
69
|
- app/views/layouts/ecm/courses/backend/application.html.erb
|
64
70
|
- config/initializers/assets.rb
|
65
71
|
- config/locales/de.yml
|
@@ -94,9 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
100
|
version: '0'
|
95
101
|
requirements: []
|
96
102
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.5.1
|
98
104
|
signing_key:
|
99
105
|
specification_version: 4
|
100
106
|
summary: Ecm::Courses::Backend.
|
101
107
|
test_files: []
|
102
|
-
has_rdoc:
|