caboose-cms 0.9.155 → 0.9.156

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: edc76e6b0fd1a265ccf600402d698dcce6717f1a
4
- data.tar.gz: 7dd06b37480fec16ccb4b5600dbc7bd79092cb12
3
+ metadata.gz: c39073c03329141c91e6a67c951559df91e4b418
4
+ data.tar.gz: ce7b85fdcd6290247e032594e22eefbd21d429af
5
5
  SHA512:
6
- metadata.gz: fd1469c8bf0bbfec3eece8337cf94d261e8b23c9c9cc4b7f6b6aa94532a1c112472c857dd6d938c330a74c11bbd467284cbbc79a327703dac8f754cb176e1184
7
- data.tar.gz: 0a2c1bbc4e841498ec648e7bfde4a8af30e2be24c1409948755f61308ead52336a77ac055f684c73a0bb558ab20abce7224fd83a3a2c165c5b5b7302d5b00e22
6
+ metadata.gz: c0932798063d96fa79b83170c5edf7983e67ab62e9af3a9aba9c99e062cc375bf838718de522d906b31d7ff3241f723836483f99bc7c10b5b87115295cfa8c6d
7
+ data.tar.gz: c199ba0cb53d44023b3355c26ab7badb30121baca0bb31b33cd249580a95e5c6bb57f1977828b02ec8001175dad94552bcd916e77bd6ee60718891b537b302b3
@@ -551,6 +551,17 @@ module Caboose
551
551
  end
552
552
  render :json => resp
553
553
  end
554
+
555
+ # @route DELETE /admin/products/bulk
556
+ def admin_bulk_delete
557
+ return unless user_is_allowed_to 'delete', 'products'
558
+ params[:model_ids].each do |product_id|
559
+ prod = Product.where(:id => product_id).first
560
+ prod.destroy if prod
561
+ end
562
+ resp = Caboose::StdClass.new('success' => true)
563
+ render :json => resp
564
+ end
554
565
 
555
566
  # @route DELETE /admin/products/:id
556
567
  def admin_delete
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.155'
2
+ VERSION = '0.9.156'
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.155
4
+ version: 0.9.156
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-06 00:00:00.000000000 Z
11
+ date: 2018-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -1253,7 +1253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1253
1253
  version: '0'
1254
1254
  requirements: []
1255
1255
  rubyforge_project:
1256
- rubygems_version: 2.5.1
1256
+ rubygems_version: 2.2.0
1257
1257
  signing_key:
1258
1258
  specification_version: 4
1259
1259
  summary: CMS built on rails.