lwqzx_auth 0.1.3 → 0.1.4

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: 03257e86f6cb105bb53fae5e7057715a68f6faed674c1692152152ef639bd7ac
4
- data.tar.gz: 8aaa15c6dce50df06612bcee7c11cbcd67d568f80abc41c772d93ddac35d6f6b
3
+ metadata.gz: 4844e1d1a3e8a83a15621c958ce92b96511a43ad92d8e045a1da306551a2e820
4
+ data.tar.gz: 6c84c127c17f024078c828117360dac596134830f243b149c68783178f7551ba
5
5
  SHA512:
6
- metadata.gz: 341a0dc82697c61963097b216261c0c585073bbb77cae98c0e1a4f3def826a66a7aa4d00806b7e90eee21c8b30946b6255e298409bdbe179356d7bc940d3964b
7
- data.tar.gz: e993a4bfa02902a0fdd9aee1425556fea7ac07b22dbf2f222caffccd74538a7719ee4c78465afd348fe47ac7d314528de567cfb17319215ee2d483116dadd39b
6
+ metadata.gz: 9ee179688a5e7a4a4dd23758a0027cac2be9c8ee2c74aab55b0e467a532c83f9f1a966c41cf8ef4a210651826f8636c9670bda8abef631a7c090b552b8e20e01
7
+ data.tar.gz: a673bca9967b235d3d6dee0831ca262e614c1f5321ba9be82974852cada467732e2b86b6d7ab6d9e62086e83e8871f20fda2d01e9f833ff13664bdf1e39f5aa9
@@ -21,23 +21,5 @@ module LwqzxAuth
21
21
  @num=per_page*(params[:page].to_i-1)
22
22
  end
23
23
 
24
- def attachit(model,attach = :attach)
25
- unless params[model.to_sym][attach].blank?
26
- if params[:action] == 'update'
27
- old_attach = eval("@#{model}.#{attach.to_s}")
28
- unless old_attach.blank?
29
- id = BSON::ObjectId.from_string(old_attach['grid_id'])
30
- MongoGrid.grid.delete(id)
31
- end
32
- end
33
- attach=params[model.to_sym][attach]
34
- MongoGrid.uploadtogrid(attach,width: 300)
35
- else
36
- if params[:action] == 'update'
37
- old_attach = eval("@#{model}.#{attach.to_s}")
38
- return old_attach.blank? ? {} : old_attach
39
- end
40
- end
41
- end
42
24
  end
43
25
  end
@@ -1,3 +1,3 @@
1
1
  module LwqzxAuth
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lwqzx_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - zxy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-08 00:00:00.000000000 Z
11
+ date: 2018-10-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: auth function into host app.
14
14
  email: