nifty-attachments 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module Nifty
4
4
 
5
5
  def self.included(base)
6
6
  base.extend ClassMethods
7
- base.before_save do
7
+ base.after_save do
8
8
  if @pending_attachments
9
9
  @pending_attachments.each do |pa|
10
10
  old_attachments = self.nifty_attachments.where(:role => pa[:role]).pluck(:id)
@@ -1,5 +1,5 @@
1
1
  module Nifty
2
2
  module Attachments
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nifty-attachments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Adam Cooke
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-11 00:00:00.000000000 Z
12
+ date: 2014-07-28 00:00:00.000000000 Z
12
13
  dependencies: []
13
14
  description: Attach documents & files to Active Record models
14
15
  email:
@@ -17,7 +18,6 @@ executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
- - lib/nifty/attachments.rb
21
21
  - lib/nifty/attachments/attachment.rb
22
22
  - lib/nifty/attachments/middleware.rb
23
23
  - lib/nifty/attachments/migration.rb
@@ -25,28 +25,30 @@ files:
25
25
  - lib/nifty/attachments/model_extension.rb
26
26
  - lib/nifty/attachments/railtie.rb
27
27
  - lib/nifty/attachments/version.rb
28
+ - lib/nifty/attachments.rb
28
29
  homepage: https://github.com/niftyware/attachments
29
30
  licenses: []
30
- metadata: {}
31
31
  post_install_message:
32
32
  rdoc_options: []
33
33
  require_paths:
34
34
  - lib
35
35
  required_ruby_version: !ruby/object:Gem::Requirement
36
+ none: false
36
37
  requirements:
37
- - - ">="
38
+ - - ! '>='
38
39
  - !ruby/object:Gem::Version
39
40
  version: '0'
40
41
  required_rubygems_version: !ruby/object:Gem::Requirement
42
+ none: false
41
43
  requirements:
42
- - - ">="
44
+ - - ! '>='
43
45
  - !ruby/object:Gem::Version
44
46
  version: '0'
45
47
  requirements: []
46
48
  rubyforge_project:
47
- rubygems_version: 2.2.2
49
+ rubygems_version: 1.8.23.2
48
50
  signing_key:
49
- specification_version: 4
51
+ specification_version: 3
50
52
  summary: Attach documents & files to Active Record models
51
53
  test_files: []
52
54
  has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 92d9215cb3a67ddb682a55798e04745d47ec2618
4
- data.tar.gz: 59d43c17a622335bf0debc15f5e9c337181d90ba
5
- SHA512:
6
- metadata.gz: 50486eb9a796633165cd57efc79ee436ae447acf8e934cbf5f7d93b6de4a1ae7aed918b5b968141fd1b8669f3512cd08a2f339a317e17321183026a5dd192bd5
7
- data.tar.gz: 24e9f08dfa8e1bdee9f65b06f5772eae01a5a4ae0462c542a2c8a755579c94d01e9eca37be4e8635563b50989e4019d5b78836398904539ec9abdb7f0c871874