adminpanel 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -1
- data.tar.gz.sig +0 -0
- data/app/controllers/concerns/adminpanel/rest_actions.rb +5 -1
- data/app/controllers/concerns/adminpanel/sortable_actions.rb +6 -0
- data/lib/adminpanel/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eadbce977126b17e453644c2508dd1e3377eb523
|
4
|
+
data.tar.gz: 27354bf7c01b4a93fde0f398aa4e167053df40a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de75f1481eec50952eb50709d74141824c03af98f3ecf7b2b9f56da5f5292b3dbb5883536fdc26c792f873aeda6e31ad403b374ca185a394261c80b294062422
|
7
|
+
data.tar.gz: 70889f9232f36f64f01e07f13dbaa79f88f96114ff24206ef2df9fe755efbb507c1b4c270c661b7a1feafc8f7562de9c14db6f06ffc2aa4dbf4d9c577f98bb25
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
wi`~}6�
|
2
|
+
='�Bw�%��Q*���U@(�-����r+��NO�{"�5��`�p^R�Ny�F��#p�m�)u�s�+?p���Q�+1�Ն���X���Gt�i�C'.m�3_%=���
|
3
|
+
�;��Q�i�PJ�m������3!s�g"SL;���[!U���$�ї8�t���g��@���ߡ�335ZwЊd�������d�^��
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -114,7 +114,11 @@ module Adminpanel
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def set_resource_instance
|
117
|
-
|
117
|
+
if @model.respond_to? :friendly
|
118
|
+
@resource_instance = @model.friendly.find(params[:id])
|
119
|
+
else
|
120
|
+
@resource_instance = @model.find(params[:id])
|
121
|
+
end
|
118
122
|
end
|
119
123
|
|
120
124
|
def set_resource_collection
|
@@ -3,6 +3,12 @@ module Adminpanel
|
|
3
3
|
extend ActiveSupport::Concern
|
4
4
|
|
5
5
|
def move_to_position
|
6
|
+
if @model.respond_to? :friendly
|
7
|
+
resource = @model.friendly.find(params[:id])
|
8
|
+
else
|
9
|
+
resource = @model.find(params[:id])
|
10
|
+
end
|
11
|
+
|
6
12
|
resource = @model.find(params[:id])
|
7
13
|
|
8
14
|
resource.move_to_position(params[:position].to_i)
|
data/lib/adminpanel/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|