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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c217c9469c0f57683c651c57ff34958d427da9c1
4
- data.tar.gz: 67d4ea62417bce221604b2b9bb67bd5db08b3ed1
3
+ metadata.gz: eadbce977126b17e453644c2508dd1e3377eb523
4
+ data.tar.gz: 27354bf7c01b4a93fde0f398aa4e167053df40a9
5
5
  SHA512:
6
- metadata.gz: 5cbd5cdcf15347538946901f8d652cdc4e6710e01b0c17a8c68c80038553367b309f1448e7dfa04891543251a6601a88af38d8b15cd451a7936080483d100c00
7
- data.tar.gz: 1e40dd656cb449476eb42d4e844eba847ff9af0b4bbcc529a8379ded1519158ba884af5e91d463a6c4d7b8f951d871a98eb2ca469979b6a66ac6e915927217c7
6
+ metadata.gz: de75f1481eec50952eb50709d74141824c03af98f3ecf7b2b9f56da5f5292b3dbb5883536fdc26c792f873aeda6e31ad403b374ca185a394261c80b294062422
7
+ data.tar.gz: 70889f9232f36f64f01e07f13dbaa79f88f96114ff24206ef2df9fe755efbb507c1b4c270c661b7a1feafc8f7562de9c14db6f06ffc2aa4dbf4d9c577f98bb25
checksums.yaml.gz.sig CHANGED
@@ -1 +1,3 @@
1
- _��)�J��_�2/*�$����|w�V��i�$t_��oš����Ը�K��+��)_� 8�/s� �t�v�2Vo�aw֕>T`]i����B���ñ�K�ou^��!��4(xňh뚆�85ƍ�Z�23��‚R}xY�/C|0�8�p]���M�I,G-���Xk����̂;��uD\����c}F���"��������<�#si����WW�_��r� ����/ZĦ4V�v>8C���
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
- @resource_instance = @model.find(params[:id])
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)
@@ -1,3 +1,3 @@
1
1
  module Adminpanel
2
- VERSION = '2.5.2'
2
+ VERSION = '2.5.3'
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: 2.5.2
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Ramon Camacho
metadata.gz.sig CHANGED
Binary file