adminpanel 3.4.4 → 3.4.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: 656daa1e47cbb3f173de193d1f88797ee50e682d
4
- data.tar.gz: 707f6136bbc1c08040f911c716ec09fe0a54cf21
3
+ metadata.gz: d7f87944062cb6aa31fa304fd2c12c27f5802dbd
4
+ data.tar.gz: 12ff111be7cbed0298e4c1f8131c5db5d0b4fe25
5
5
  SHA512:
6
- metadata.gz: 3554a16d5bdab199ef2cde4998cb96fd1d48378459b58b3c5f8087df6005e1133eb8b521564d43b65971ae43bcccfe6cb20b066add97bab0f4d6733481dca9c7
7
- data.tar.gz: 8f1472698f1b25739fedd263d5eeeeab1187645ad0d754e9e719812c05ad05690308d2c36545e3c3166dcec6173346f04fe889550009398ddb2a6e70bdf91b3b
6
+ metadata.gz: c1ecf13ccda0b9e97bba10abb61a567395cbd13645e6592626d9c4477ef2573c88c6495f80f5e0559bdfff84a2d4a03b108f6793653f4544f580955f7fd74852
7
+ data.tar.gz: dca644cf10561229cf9a9a5fb93aec4b0d18193e08a7283281d3c5a0dc6b87c4cc5ba3930c580ad6a66bbc4800b13355b2517c4029e8760d5ac165c492686210
@@ -2,9 +2,33 @@ module Adminpanel
2
2
  class Page < ActiveRecord::Base
3
3
  include Adminpanel::Base
4
4
 
5
+ def self.mount_uploader(attribute, uploader)
6
+ super attribute, uploader
7
+ define_method "#{attribute}_will_change!" do
8
+ fields_will_change!
9
+ instance_variable_set("@#{attribute}_changed", true)
10
+ end
11
+ define_method "#{attribute}_changed?" do
12
+ instance_variable_get("@#{attribute}_changed")
13
+ end
14
+ define_method "write_uploader" do |column, identifier|
15
+ fields[column.to_s] = identifier
16
+ end
17
+ define_method "read_uploader" do |column|
18
+ fields[column.to_s]
19
+ end
20
+ end
5
21
 
6
22
  def self.whitelisted_attributes(params)
7
23
  params.require(self.name.to_s.underscore.split('/').last).permit!
8
24
  end
25
+
26
+ def write_uploader(column, identifier)
27
+
28
+ end
29
+
30
+ def read_uploader(column)
31
+ end
32
+
9
33
  end
10
34
  end
@@ -1,3 +1,3 @@
1
1
  module Adminpanel
2
- VERSION = '3.4.4'
2
+ VERSION = '3.4.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adminpanel
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.4
4
+ version: 3.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Ramon Camacho
@@ -9,29 +9,7 @@ authors:
9
9
  - Eduardo Albertos
10
10
  autorequire:
11
11
  bindir: bin
12
- cert_chain:
13
- - |
14
- -----BEGIN CERTIFICATE-----
15
- MIIDYDCCAkigAwIBAgIBATANBgkqhkiG9w0BAQUFADA7MQ8wDQYDVQQDDAZ2aWN0
16
- b3IxFDASBgoJkiaJk/IsZAEZFgRjb2RuMRIwEAYKCZImiZPyLGQBGRYCbXgwHhcN
17
- MTUwMzIwMTkwMTA4WhcNMTYwMzE5MTkwMTA4WjA7MQ8wDQYDVQQDDAZ2aWN0b3Ix
18
- FDASBgoJkiaJk/IsZAEZFgRjb2RuMRIwEAYKCZImiZPyLGQBGRYCbXgwggEiMA0G
19
- CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDmdMzllrIGptczoKmPRuYk4C++SE0S
20
- 6HI44pD7EBkto4NkpECUJZnaUYf7xTpm7t68O7GwGT+0Vrljpx2W1To42/MonU60
21
- fbFbOR8HmOvbb2WQY55axC+utQ6oqITPaBLg6thFYbRPAQwsUBN0F0NqExlPpRL5
22
- oSih3LUKzp4qVcimzWMzCXAu127mkPmG+M+Xo4pUUtG4uz9d67ujSG2LX9oxIteQ
23
- Ibs2TMh1WXAKttwi1wVBGgQujoHgGrOTq1bX72/a2tfFeIXrAt5H3hYhF7pToWhN
24
- OHJRalpyDui37p0EksEz+bFJ8KsUWjlxlOjioemsxxp0YIEjEHZR6/ZNAgMBAAGj
25
- bzBtMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBTUBDel181sCLrY
26
- 1ipjHl7bJ7vCijAZBgNVHREEEjAQgQ52aWN0b3JAY29kbi5teDAZBgNVHRIEEjAQ
27
- gQ52aWN0b3JAY29kbi5teDANBgkqhkiG9w0BAQUFAAOCAQEABLmaFKUFaGnCO+uq
28
- GMCQQRFBh7uJgJUndaAr8CheqaF0U+nJX2Xsggb1VCQDK6TNFVBdvIH+KSYJtu90
29
- e6AKGdJKAqNetWKG4Wo9gycWcJdT5CzOWhXgwOi+O+8Z9p3j0pLkDMJTn0Li2+79
30
- jb0AfMmll67rqqCq6Mmxx6rQQulE8CB1siuLzf6DfbrfrlGCe2Qy77pwFwqNoEPP
31
- P/U4QAtdpmTbKreZ5f2TEXlF/kqXL79j2/ov8sd7B+aWNI3vEXKXiPALa+hupDWs
32
- XdmvXYY6Fr9AHqSdbvphaVu+RqBpkBdGUQCcCZ73NjXSUwgJumx1p1A8e4NXrh1e
33
- pYh0/Q==
34
- -----END CERTIFICATE-----
12
+ cert_chain: []
35
13
  date: 2017-08-17 00:00:00.000000000 Z
36
14
  dependencies:
37
15
  - !ruby/object:Gem::Dependency
@@ -772,7 +750,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
772
750
  requirements:
773
751
  - imagemagick installed
774
752
  rubyforge_project:
775
- rubygems_version: 2.6.11
753
+ rubygems_version: 2.4.5.1
776
754
  signing_key:
777
755
  specification_version: 4
778
756
  summary: Made with <3 by CoDN