ucpengine 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/ucpengine/entries_controller.rb +3 -3
- data/lib/ucpengine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0ebe22e51ccfd189c09b0adbdfe3013655fd149
|
|
4
|
+
data.tar.gz: 2c63d925131abe59ccce2bac92a8951b5ac93ff8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2d4b3f56457efbb50b15a0bcc917484056ed33aa8a86f5efc876438337d706216e06bbd774ca73b028c920d7434cee3309b9e7194a06396b7cc7d02614c642a
|
|
7
|
+
data.tar.gz: cc56843e16d786757a50f690df2cb7413c5dc8660e7085881189ff19d2bf02e39bc557f6b3bc6c785212930f586a904109eb57195aa34a3590bd0e958bf67454
|
|
@@ -5,7 +5,7 @@ module Ucpengine
|
|
|
5
5
|
before_action :set_entry, only: [:show, :edit, :update, :destroy]
|
|
6
6
|
|
|
7
7
|
def index
|
|
8
|
-
@entries = Entry.where(
|
|
8
|
+
@entries = Entry.where(content_type: content_class)
|
|
9
9
|
@terms_of_use = Entry.where(service_type: 'Terms of Use')
|
|
10
10
|
@third_party_terms_of_use = Entry.where(service_type: 'Third Party Terms of Use')
|
|
11
11
|
@privacy_policy = Entry.where(service_type: 'Privacy Policy')
|
|
@@ -16,7 +16,7 @@ module Ucpengine
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def new
|
|
19
|
-
@entry = Entry.new(
|
|
19
|
+
@entry = Entry.new(content_type: content_class)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def edit
|
|
@@ -53,7 +53,7 @@ module Ucpengine
|
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
def entry_params
|
|
56
|
-
allowed_attrs = %i(id
|
|
56
|
+
allowed_attrs = %i(id content_type service_body service_type version slug published_at)
|
|
57
57
|
.concat(content_class.constantize.content_attributes.keys)
|
|
58
58
|
|
|
59
59
|
params.require(:entry).permit(*allowed_attrs)
|
data/lib/ucpengine/version.rb
CHANGED