lotus_admin 1.5.4 → 1.5.5

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
  SHA256:
3
- metadata.gz: 9d5052f9e0e3aaf32f8b1dfcf66be5501f293ffdd683ad13c1c570177dce11f6
4
- data.tar.gz: 0dbbb116f2aae45ae698a81d7ae214af02dc339d5875124fc910271fa0115b9d
3
+ metadata.gz: 7e57539d667b82f3e4212841eb753c5ad31c65c7c3e67ebb38660032f56c1a4e
4
+ data.tar.gz: 965da47c55f3f89e867fc4baa338013c49b896712db2eb1b146869dba1f0aa95
5
5
  SHA512:
6
- metadata.gz: a9c4c4102df48541806b92fad477bc7c4be8e6d855e23fd0462f9a85ec06fee0b4723b793484f9195675b46ad27efcbb08a13910ec323f64d041a21bcb5fe9ed
7
- data.tar.gz: 3cd4e662aa85bf6c4e66b1c34d6f7f694ae4015e4edf05587c5aa77bf894c25a2206fa01475e504b36809062d4ec3c45449c06d83cf8a0cf83b0a8d0de5499ee
6
+ metadata.gz: ae1f254edaa96c81589c526b955d2f099768a69b68999ddd8155b1e0f414cbf72f266ea3922765add1059c3a340f2fa26ade8e978871c2f6717f8b8be5621dae
7
+ data.tar.gz: 27e4aef7ba354a1c039eb6bc4aef087e8477aef3ab6d537b147f26f9ece1a90a55568da42b4152ad927bf658092aaea95537e115fb55471b2fac3e256f279dcf
@@ -56,13 +56,17 @@ class LotusAdmin::ResourceController < LotusAdmin::AuthenticatedController
56
56
  def update(&block)
57
57
  authorize(resource) if using_pundit?
58
58
 
59
- if block.present?
60
- block.call
61
- else
62
- if resource.update(permitted_params)
63
- redirect_to after_update_redirect, notice: "Updated #{ resource_class.model_name.human } successfully"
59
+ respond_to do |format|
60
+ format.html
61
+
62
+ if block.present?
63
+ block.call(format)
64
64
  else
65
- render :edit
65
+ if resource.update(permitted_params)
66
+ redirect_to after_update_redirect, notice: "Updated #{ resource_class.model_name.human } successfully"
67
+ else
68
+ render :edit
69
+ end
66
70
  end
67
71
  end
68
72
  end
@@ -1,3 +1,3 @@
1
1
  module LotusAdmin
2
- VERSION = '1.5.4'
2
+ VERSION = '1.5.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotus_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Millsaps-Brewer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-25 00:00:00.000000000 Z
11
+ date: 2020-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails