push_type_core 0.8.0.beta.2 → 0.8.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/fields/push_type/asset_field.rb +1 -1
- data/app/fields/push_type/relation_field.rb +1 -1
- data/lib/push_type/version.rb +1 -1
- data/test/dummy/config/initializers/push_type.rb +1 -1
- data/test/dummy/config/secrets.yml +2 -2
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/test.log +8647 -8613
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/0ANSDcZJu9gPyqtYPIW729qm1kriQ29Vn9LU8T2SGQU.cache +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_d65qW7wxRtKVSYpmfSenECz5QUWVI9pppUgV7TA1Rk.cache +0 -0
- data/test/dummy/tmp/generators/app/models/location.rb +7 -0
- data/test/fields/push_type/asset_field_test.rb +8 -0
- data/test/fields/push_type/relation_field_test.rb +1 -1
- metadata +20 -20
- data/test/dummy/tmp/generators/app/presenters/page_presenter.rb +0 -12
- /data/test/dummy/db/migrate/{20160215150602_create_push_type_users.push_type.rb → 20160219133942_create_push_type_users.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20160215150603_create_push_type_nodes.push_type.rb → 20160219133943_create_push_type_nodes.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20160215150604_create_push_type_node_hierarchies.push_type.rb → 20160219133944_create_push_type_node_hierarchies.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20160215150605_create_push_type_assets.push_type.rb → 20160219133945_create_push_type_assets.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20160215150606_add_field_store_default_values.push_type.rb → 20160219133946_add_field_store_default_values.push_type.rb} +0 -0
- /data/test/dummy/db/migrate/{20160215150607_drop_legacy_push_type_taxonomies.push_type.rb → 20160219133947_drop_legacy_push_type_taxonomies.push_type.rb} +0 -0
- /data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{HbQzCpEE_QUF4m04TN_zIYyaX1ZCcx171j2td0cH-Vk.cache → 2FQF7uxsHizgSoGRwbNmDmFTPoWfdOsi-4mptjRhClE.cache} +0 -0
- /data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{BbdqmNmo_cMpT3dnntuUSQnMCU3FOU0qEbTy3ESfBHE.cache → oQZIWFGqjXT0crXajNxkE6c5otWSMfx0ji4kIN6v3XM.cache} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37caa09f6aa9704193b0970a72cc95e40b1fdc12
|
4
|
+
data.tar.gz: 31f843aebc68747844805cb91ca81f276663867c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c3c3b6df7ff7a437ed46d33b3df05f9d048003d7d5dee7c9093ea9b1a42df0ca0d1267d8d538e9029de7b520d9e2c2aded7b3b6b14bfa2aecf76488dc5a3056
|
7
|
+
data.tar.gz: 3f9a7cafcb58a677255603fa07481a74912672bed5d737f948e38c812deda4e94dd1d46e2d39f2877f6e0afe28444c74ba8b324d633a7c5b759f05094dc17e59
|
@@ -10,7 +10,7 @@ module PushType
|
|
10
10
|
on_instance do |object, field|
|
11
11
|
object.class_eval do
|
12
12
|
define_method(field.relation_name.to_sym) do
|
13
|
-
field.relation_class.not_trash.
|
13
|
+
field.relation_class.not_trash.find_by_id field.json_value unless field.json_value.blank?
|
14
14
|
end unless method_defined?(field.relation_name.to_sym)
|
15
15
|
end
|
16
16
|
end
|
@@ -79,7 +79,7 @@ module PushType
|
|
79
79
|
if field.multiple?
|
80
80
|
field.relation_class.where id: field.json_value
|
81
81
|
else
|
82
|
-
field.relation_class.
|
82
|
+
field.relation_class.find_by_id field.json_value
|
83
83
|
end
|
84
84
|
end unless method_defined?(field.relation_name.to_sym)
|
85
85
|
end
|
data/lib/push_type/version.rb
CHANGED
@@ -45,6 +45,6 @@ PushType.setup do |config|
|
|
45
45
|
# secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
|
46
46
|
# }
|
47
47
|
|
48
|
-
# config.dragonfly_secret = '
|
48
|
+
# config.dragonfly_secret = 'bd8886e809b0931fc2d1bc7ea831ffea3364a34d97309281c55d3f6dafbf5e92'
|
49
49
|
|
50
50
|
end
|
@@ -11,10 +11,10 @@
|
|
11
11
|
# if you're sharing your code publicly.
|
12
12
|
|
13
13
|
development:
|
14
|
-
secret_key_base:
|
14
|
+
secret_key_base: ae3a25e7a92317461a98e2b843e2e470a28bfb6539a60eca434c3ba633a9b37fa057f6b2b1269cf9a5cbf2375a315b5f65e6a8335373554855a4e56ee3ed0608
|
15
15
|
|
16
16
|
test:
|
17
|
-
secret_key_base:
|
17
|
+
secret_key_base: 7dbb8b1e6f23a3fccd17bd268f328ffb08f85a151af9c59ca9b939afb09557d1582883cd8dc865845e900ff2f6750ff6dc891ca00e12aa4bdaba17fd936ef8a3
|
18
18
|
|
19
19
|
# Do not keep production secrets in the repository,
|
20
20
|
# instead read values from the environment.
|
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20160219133947) do
|
15
15
|
|
16
16
|
# These are extensions that must be enabled in order to support this database
|
17
17
|
enable_extension "plpgsql"
|