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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0afdc9f0e0904833b2380d20bf1a35814366856
4
- data.tar.gz: 25b2fe1b47faf2e39972325e8c786cfd3f5d063f
3
+ metadata.gz: a10980ae1f5e640316c8f251f69ebab779e07d91
4
+ data.tar.gz: 64a76b7bf94d88004f2f034c09036acab4cecd4d
5
5
  SHA512:
6
- metadata.gz: b6f14540e8960126da59abc17298056c71344e1561870c5734e5ba9d62f91c67a1ff10a36b99b67b0c8a6eae858b7b0d572ab0f11dbe2e4c57fcdcf5fcb8a083
7
- data.tar.gz: f3da6c74e2f3ad916ebb7100a5178f92b1a8f9ffb899d30735943c7b689e278ca440e64d9d9284a10fba6dc318a1b980bd1ca92dcad37bed3d075a46f4447ce8
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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.66'
2
+ VERSION = '0.9.67'
3
3
  end
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.66
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-08 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg