bhf 0.10.16 → 0.10.17

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: 119f18c8ad1f3915d59d75aa74718925d8a7d173
4
- data.tar.gz: 53c9f3546e4e9f2496a0f4908cd1ed95f9c6da58
3
+ metadata.gz: 08eead651a138cdfc4ecd590e8755d9fdff027fd
4
+ data.tar.gz: 08a6ac0773eb814c72aa85375a9c05af691be6a4
5
5
  SHA512:
6
- metadata.gz: 151ecee95c0c3b51725a0702efe0812ab54ac51759a081de71f5922799002bbd5dd7681f2c5085a6f2db350ced1cc774edfe935301d9ba9fac767784d36e0fde
7
- data.tar.gz: 3fce326a757bbcf6ec4968001e3aceb594f390bcb931cc94d0eb4f6fc0efcf97908d81364d1b4e25eb2d3dff99abec40ccef0349e06ca9c5c5d5c79773fd8a9f
6
+ metadata.gz: 01cf9f7ab6ab354564792b5cfb31bd2346387140d97fd1f925ca9e0e80a1ecde7a748b6e2b99c7242e37715a2133e10c3fc4de7edf90c934eee2262f5fcd1023
7
+ data.tar.gz: 5cb614a0515200c9f335db872fcb09e30695c0bde71eafcc5aab8df092b89620815162eeb41b707868fa8c902bdcaf40eea275bc2ddf713fcf9b7f82081a84c4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.16
1
+ 0.10.17
@@ -54,6 +54,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
54
54
 
55
55
  before_save
56
56
  if @object.update_attributes(@permited_params)
57
+ puts 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
57
58
  manage_relations
58
59
  after_save
59
60
 
@@ -149,7 +150,9 @@ class Bhf::EntriesController < Bhf::ApplicationController
149
150
 
150
151
  def load_model
151
152
  @model = @platform.model
152
- @permited_params = ActionController::Parameters.new(params[@platform.model_name.to_sym]).permit!
153
+ if params[@platform.model_name.to_sym]
154
+ @permited_params = params.require(@platform.model_name.to_sym).permit!
155
+ end
153
156
  end
154
157
 
155
158
  def load_object
@@ -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 0.10.16 ruby lib
5
+ # stub: bhf 0.10.17 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bhf"
9
- s.version = "0.10.16"
9
+ s.version = "0.10.17"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Anton Pawlik"]
14
- s.date = "2016-05-31"
14
+ s.date = "2017-01-29"
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."
16
16
  s.email = "anton.pawlik@gmail.com"
17
17
  s.extra_rdoc_files = [
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: 0.10.16
4
+ version: 0.10.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails