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 +4 -4
- data/app/models/adminpanel/page.rb +24 -0
- data/lib/adminpanel/version.rb +1 -1
- metadata +3 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7f87944062cb6aa31fa304fd2c12c27f5802dbd
|
4
|
+
data.tar.gz: 12ff111be7cbed0298e4c1f8131c5db5d0b4fe25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/adminpanel/version.rb
CHANGED
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
|
+
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.
|
753
|
+
rubygems_version: 2.4.5.1
|
776
754
|
signing_key:
|
777
755
|
specification_version: 4
|
778
756
|
summary: Made with <3 by CoDN
|