polygallery 0.3.4 → 0.3.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4cb87b1b9b1d3ac5a80d3375bbb882d763f9331
|
4
|
+
data.tar.gz: 3cae08158dcf632f6d7dfd57d0ca590a281129aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/polygallery/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|