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 +4 -4
- data/app/controllers/caboose/products_controller.rb +11 -0
- data/lib/caboose/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c39073c03329141c91e6a67c951559df91e4b418
|
4
|
+
data.tar.gz: ce7b85fdcd6290247e032594e22eefbd21d429af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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-
|
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.
|
1256
|
+
rubygems_version: 2.2.0
|
1257
1257
|
signing_key:
|
1258
1258
|
specification_version: 4
|
1259
1259
|
summary: CMS built on rails.
|