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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: afb5021883407707557b7d2c157a9417e83c19c5
4
- data.tar.gz: 2a13e6e29e6906082db9c508312fe43d19b30169
3
+ metadata.gz: f0ebe22e51ccfd189c09b0adbdfe3013655fd149
4
+ data.tar.gz: 2c63d925131abe59ccce2bac92a8951b5ac93ff8
5
5
  SHA512:
6
- metadata.gz: 1ab8737a1a8b762d0d28f28f0e37ea4be57e0dc0d624989a846da124ba3e3c397d866b21308d141ee22cef5de07ba1a4377f6822c363755acdd07716b48e6ef3
7
- data.tar.gz: 3d543ae0585caafab99544651209bd24b3d3a2d17b929c063605ba2e490d5adb457694c9a8e422a157932b01f1b592071008e721fae8fb0dba29da4071e8ece0
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(type: content_class)
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(type: content_class)
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 type service_body service_type version slug published_at)
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)
@@ -1,3 +1,3 @@
1
1
  module Ucpengine
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucpengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr