polygallery 0.3.4 → 0.3.5

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: 74d1166bebf3c13f615c587b375d373d4cafde1c
4
- data.tar.gz: de5dc955a7c4adcc1a21adc0a22ae5b0acfd964f
3
+ metadata.gz: a4cb87b1b9b1d3ac5a80d3375bbb882d763f9331
4
+ data.tar.gz: 3cae08158dcf632f6d7dfd57d0ca590a281129aa
5
5
  SHA512:
6
- metadata.gz: a99f2e27857b890a161b0eb7184e2519a37573826691e54658507f7aa0aebbd3e138acb351b071c770f1072cc90ae683b9414315a7fec1764bf0e9e6e1b13808
7
- data.tar.gz: ce8354f4fdc4cf7e4825c4fd158542f0f55e6f04cf231382f5429c45821092f7445918201f4f0083eeb9095ff10145f2f900a6dd972e5b235fd99762e098961f
6
+ metadata.gz: 8922285506dbd5489b6e806144ef81ab9031fce5ada07598497d9413ae8db4eb8b06a8011183420d225e645ee060fcdb565eb7c2be71967213ae01138c2534a9
7
+ data.tar.gz: eca8c82fba62d870dbade8a5d5db18fda7a401513c4268693a8bad615ae1f57861c8cd949c158aec5c231a364da6be1e0fa1d11ebf0cb6e60b99680e1d5728b6
@@ -4,12 +4,16 @@ module Polygallery::StrongParams
4
4
  included do
5
5
  end
6
6
 
7
- def polygallery_params(association='photos')
7
+ def self.polygallery_params(association='photos')
8
8
  [:id, :title, :galleryable_id, :galleryable_type,
9
9
  :_destroy, {:photos_attributes => polyphoto_params(association) } ]
10
10
  end
11
- def polyphoto_params(association='photos')
11
+ def self.polyphoto_params(association='photos')
12
12
  [:id, :photo, :title, :caption, :gallery_title,
13
13
  :galleryable_id, :galleryable_type, :_destroy]
14
14
  end
15
+ def polygallery_params(association='photos')
16
+ self.class.polygallery_params association end
17
+ def polyphoto_params(association='photos')
18
+ self.class.polyphoto_params association end
15
19
  end
@@ -1,3 +1,3 @@
1
1
  module Polygallery
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polygallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - MacKinley Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-28 00:00:00.000000000 Z
11
+ date: 2015-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails