lotus_admin 1.5.3 → 1.5.4

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: '0009428266da5d0d9c3ea09cbbea1c6f4f2e7f09c9da6a5792c5f2891f9f7f09'
4
- data.tar.gz: 8e0480793bc75ea33106336c1a5fb75d79c09ef1e93fc4b596c92761019fdf93
3
+ metadata.gz: 9d5052f9e0e3aaf32f8b1dfcf66be5501f293ffdd683ad13c1c570177dce11f6
4
+ data.tar.gz: 0dbbb116f2aae45ae698a81d7ae214af02dc339d5875124fc910271fa0115b9d
5
5
  SHA512:
6
- metadata.gz: 7a92fecdde33a23f2fb010d551aaf90f3db1688d767c01154f0c6d6394a3adc3fa1092edc9575b9a4cce5375a7f8e18f3b1e0bb32241acf8b0d726a9f7f4c971
7
- data.tar.gz: 5ffdaafacaba4d838bab07471d727614ff17cacd4da9fae3f75b3aab13254050be2986aa7b57fc80ff8ce0b7678161ee6e6a37637dea2bdf8fe362aa8e8c1c64
6
+ metadata.gz: a9c4c4102df48541806b92fad477bc7c4be8e6d855e23fd0462f9a85ec06fee0b4723b793484f9195675b46ad27efcbb08a13910ec323f64d041a21bcb5fe9ed
7
+ data.tar.gz: 3cd4e662aa85bf6c4e66b1c34d6f7f694ae4015e4edf05587c5aa77bf894c25a2206fa01475e504b36809062d4ec3c45449c06d83cf8a0cf83b0a8d0de5499ee
@@ -32,7 +32,7 @@ class LotusAdmin::ResourceController < LotusAdmin::AuthenticatedController
32
32
  format.html
33
33
 
34
34
  if block.present?
35
- block.call
35
+ block.call(format)
36
36
  else
37
37
  if resource.save
38
38
  redirect_to after_create_redirect, notice: "Created new #{ resource_class.model_name.human } successfully"
@@ -12,7 +12,7 @@ module LotusAdmin
12
12
  filter :last_sign_in_at
13
13
 
14
14
  def create
15
- super do
15
+ super do |format|
16
16
  resource.password = Devise.friendly_token.first(8)
17
17
 
18
18
  if resource.save
@@ -1,3 +1,3 @@
1
1
  module LotusAdmin
2
- VERSION = '1.5.3'
2
+ VERSION = '1.5.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lotus_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Millsaps-Brewer