bhf 1.0.0.beta12 → 1.0.0.beta13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/controllers/bhf/entries_controller.rb +2 -2
- data/bhf.gemspec +27 -16
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0299a01e605ea27b2d8d18c66f4a3777b3c3c49d00fe25d9b144d6b12939085e'
|
4
|
+
data.tar.gz: 4c73e93c7866ed81e04372459bb155b1c1a15a6e392b0462d0acc3c02491d68e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c958e66dde651b74f2d2b7cb6c4b8aad2934e49c551442645be298fadcbd75d79794303a225179b03ac6641041932374805e40a8b04e486f9f35487e5c82bef4
|
7
|
+
data.tar.gz: 0dc40e56b3f326275afd315d92ce3df1fb7f898396f4a45a6716771dfe3017877b9cda5aaa8a9e3906a7f575d73f90ce65e72924e52d431c0d0f5837f702d7d7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.beta13
|
@@ -168,7 +168,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
|
|
168
168
|
def manage_many_to_many
|
169
169
|
return unless params[:has_and_belongs_to_many]
|
170
170
|
params[:has_and_belongs_to_many].each_pair do |relation, ids|
|
171
|
-
next
|
171
|
+
next if ids.nil? || ids.empty?
|
172
172
|
reflection = @model.reflections[relation]
|
173
173
|
relation_array = @object.send(relation)
|
174
174
|
reflection.klass.unscoped.find(ids.keys).each do |relation_obj|
|
@@ -208,7 +208,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
|
|
208
208
|
return unless params[:has_many]
|
209
209
|
object_id = @object.send(@model.bhf_primary_key)
|
210
210
|
params[:has_many].each_pair do |relation, ids|
|
211
|
-
next
|
211
|
+
next if ids.nil? || ids.empty?
|
212
212
|
reflection = @model.reflections[relation]
|
213
213
|
preset_ids = @object.send(relation).collect do |object|
|
214
214
|
object.send(object.class.bhf_primary_key).to_s
|
data/bhf.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: bhf 1.0.0.
|
5
|
+
# stub: bhf 1.0.0.beta13 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bhf".freeze
|
9
|
-
s.version = "1.0.0.
|
9
|
+
s.version = "1.0.0.beta13"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Anton Pawlik".freeze]
|
14
|
-
s.date = "2020-
|
14
|
+
s.date = "2020-07-16"
|
15
15
|
s.description = "A simple to use Rails-Engine-Gem that offers an admin interface for trusted user. Easy integratable and highly configurable and agnostic. Works with ActiveRecord and Mongoid.".freeze
|
16
16
|
s.email = "anton.pawlik@gmail.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -174,24 +174,35 @@ Gem::Specification.new do |s|
|
|
174
174
|
]
|
175
175
|
s.homepage = "http://antpaw.github.io/bhf".freeze
|
176
176
|
s.licenses = ["MIT".freeze]
|
177
|
-
s.rubygems_version = "3.
|
177
|
+
s.rubygems_version = "3.0.8".freeze
|
178
178
|
s.summary = "A simple to use Rails-Engine-Gem that offers an admin interface for trusted user.".freeze
|
179
179
|
|
180
180
|
if s.respond_to? :specification_version then
|
181
181
|
s.specification_version = 4
|
182
|
-
end
|
183
182
|
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
183
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
184
|
+
s.add_runtime_dependency(%q<rails>.freeze, [">= 5.2.2.1"])
|
185
|
+
s.add_runtime_dependency(%q<sass-rails>.freeze, [">= 6"])
|
186
|
+
s.add_runtime_dependency(%q<turbolinks>.freeze, [">= 2"])
|
187
|
+
s.add_runtime_dependency(%q<kaminari>.freeze, [">= 0"])
|
188
|
+
s.add_runtime_dependency(%q<haml-rails>.freeze, [">= 0"])
|
189
|
+
s.add_development_dependency(%q<shoulda>.freeze, [">= 3"])
|
190
|
+
s.add_development_dependency(%q<rdoc>.freeze, [">= 3"])
|
191
|
+
s.add_development_dependency(%q<bundler>.freeze, [">= 1"])
|
192
|
+
s.add_development_dependency(%q<jeweler>.freeze, [">= 2"])
|
193
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
194
|
+
else
|
195
|
+
s.add_dependency(%q<rails>.freeze, [">= 5.2.2.1"])
|
196
|
+
s.add_dependency(%q<sass-rails>.freeze, [">= 6"])
|
197
|
+
s.add_dependency(%q<turbolinks>.freeze, [">= 2"])
|
198
|
+
s.add_dependency(%q<kaminari>.freeze, [">= 0"])
|
199
|
+
s.add_dependency(%q<haml-rails>.freeze, [">= 0"])
|
200
|
+
s.add_dependency(%q<shoulda>.freeze, [">= 3"])
|
201
|
+
s.add_dependency(%q<rdoc>.freeze, [">= 3"])
|
202
|
+
s.add_dependency(%q<bundler>.freeze, [">= 1"])
|
203
|
+
s.add_dependency(%q<jeweler>.freeze, [">= 2"])
|
204
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
205
|
+
end
|
195
206
|
else
|
196
207
|
s.add_dependency(%q<rails>.freeze, [">= 5.2.2.1"])
|
197
208
|
s.add_dependency(%q<sass-rails>.freeze, [">= 6"])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bhf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Pawlik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -331,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
331
331
|
- !ruby/object:Gem::Version
|
332
332
|
version: 1.3.1
|
333
333
|
requirements: []
|
334
|
-
rubygems_version: 3.
|
334
|
+
rubygems_version: 3.0.8
|
335
335
|
signing_key:
|
336
336
|
specification_version: 4
|
337
337
|
summary: A simple to use Rails-Engine-Gem that offers an admin interface for trusted
|