rails_on_rails 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 869bf4e4aef3dfc4c2e799b108ba182f87e700c1627235e1b2351ed525378298
|
4
|
+
data.tar.gz: f4d2a4923ef066ebfcc305cffcb4451450fbe55db1e525d8f2f656b9a63f4678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c6aee61bbd5b4cdfb2af12a2f2702c0e8fcc9dbec077542bf5d9e7e4874b351b6d88e70f231ec067fa2e0fe4a92fb3be21ba7b625efcd96258934915f3e63bf
|
7
|
+
data.tar.gz: fd1bf6ff431699669605de1bceb8a469e796f8989abc7cae12a0c22177621a4b109183564743f7a6669e8ec7e4438797f19a7b8ba9b817b10a0241dab3e08548
|
@@ -80,8 +80,7 @@ class GlobalController < ApplicationController
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
def
|
84
|
-
ams(*args)
|
83
|
+
def handle_bulk_params(*args)
|
85
84
|
params[:bulk].map do |element|
|
86
85
|
args.each_with_object({}) do |item, acc|
|
87
86
|
if item.is_a?(Hash) && !item.empty? && element[(item[:key].to_s + '_id').to_sym]
|
@@ -105,6 +104,10 @@ class GlobalController < ApplicationController
|
|
105
104
|
render_params
|
106
105
|
end
|
107
106
|
|
107
|
+
def bulk_update_params
|
108
|
+
params[:bulk]
|
109
|
+
end
|
110
|
+
|
108
111
|
def bulk_create_params
|
109
112
|
params[:bulk]
|
110
113
|
end
|
@@ -179,10 +182,6 @@ class GlobalController < ApplicationController
|
|
179
182
|
model.update(body_hash.keys, body_hash.values)
|
180
183
|
end
|
181
184
|
|
182
|
-
def bulk_update_params
|
183
|
-
params[:bulk]
|
184
|
-
end
|
185
|
-
|
186
185
|
def handle_destroy
|
187
186
|
model.where(id: params[:id]).delete_all
|
188
187
|
end
|
data/lib/constants/options.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aidan Miles
|
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
requirements:
|
98
98
|
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 2.
|
100
|
+
version: 2.5.0
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - ">="
|