caboose-cms 0.9.66 → 0.9.67
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/post_custom_fields_controller.rb +13 -0
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a10980ae1f5e640316c8f251f69ebab779e07d91
|
4
|
+
data.tar.gz: 64a76b7bf94d88004f2f034c09036acab4cecd4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50424a8fb4fe3a92f9a7b0d2d06fbc1dca609bf0e8825f21923ae3cb6cafc77224dd070294047e37cf0bb99e5fdd85068dba189138be2413246c9a72012a384a
|
7
|
+
data.tar.gz: 33e56555047ff9ecd839a83bb62b0cc7e27ee012c02329a9aac53c02fd2b8999cd0ffee0bf72f47aa9fc36a003a8a17020a9a67b560211753c3e10f1d0cd2103
|
@@ -107,6 +107,19 @@ module Caboose
|
|
107
107
|
|
108
108
|
render :json => { 'redirect' => '/admin/post-custom-fields' }
|
109
109
|
end
|
110
|
+
|
111
|
+
# @route GET /admin/post-custom-fields/:pcfid/options
|
112
|
+
def admin_field_options
|
113
|
+
options = []
|
114
|
+
pcf = PostCustomField.where(:site_id => @site.id, :id => params[:pcfid]).first
|
115
|
+
if pcf && !pcf.options.blank?
|
116
|
+
pcf.options.split(/\n/).each do |f|
|
117
|
+
opt = {'text' => f, 'value' => f}
|
118
|
+
options << opt
|
119
|
+
end
|
120
|
+
end
|
121
|
+
render :json => options
|
122
|
+
end
|
110
123
|
|
111
124
|
# @route_priority 1
|
112
125
|
# @route GET /admin/post-custom-fields/:field-options
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.67
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|