refile_images 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 4347bce5ee07c8c3ac96334bc52d218f0f771a36
4
- data.tar.gz: d24c48ab40dcf0605aad97dced03b100c1c50a68
3
+ metadata.gz: 743a3da9fe0259af007fe4726ba188f978d9e4d5
4
+ data.tar.gz: e97c66532b11bf2b770b2f8f3ab35279f4daa89d
5
5
  SHA512:
6
- metadata.gz: e06d72c4931d24e49b310bbe39e3144ac4a1584924d5f5da7099edfd5dd8966731b0fea11194c5d72356b956acb76f9237510307ddbbcdb8236bce34a863a4d0
7
- data.tar.gz: 25aae135a74e327f6e978602dbcea8e9a9bf86c298e34fc4c8a4d4c64415e80e50c2b88fe76b56d59138ece6d6a74c4f847606edd3be355fe3f4502b7b5a994a
6
+ metadata.gz: 2d18a24169a25aec4ed44195e93dc8874065987c303d5782c6000b67b2621765a41e22658d56e03bf5f5c5a50d212c3b4b3a582a417d345feb258cd717bcc386
7
+ data.tar.gz: 2fdfbc44ad2a94e39cf42e28e6f7b8846f0d51b8ed9dc13839735cb3f1768730f3177738b97e6980bbee645425ba2b837eccc4627f50105ace19e5abe348acf1
@@ -15,7 +15,7 @@ module RefileImages
15
15
  plural = name.to_s.pluralize.to_sym
16
16
  singular = name.to_s.singularize.to_sym
17
17
 
18
- has_many plural, -> { where "#{attachment}_filename" => singular },
18
+ has_many plural, -> { where "#{attachment}_filename" => name },
19
19
  as: :imageable,
20
20
  class_name: "Image",
21
21
  dependent: :destroy,
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module RefileImages
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refile_images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Barragán
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-02 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails