activeadmin-sortable 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,9 @@ module ActiveAdmin
23
23
 
24
24
  def sortable_handle_column
25
25
  column '', :class => "activeadmin-sortable" do |resource|
26
- sort_url = resource_path(resource) + "/sort"
26
+ sort_url, query_params = resource_path(resource).split '?', 2
27
+ sort_url += "/sort"
28
+ sort_url += "?" + query_params if query_params
27
29
  content_tag :span, HANDLE, :class => 'handle', 'data-sort-url' => sort_url
28
30
  end
29
31
  end
@@ -1,5 +1,5 @@
1
1
  module Activeadmin
2
2
  module Sortable
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-14 00:00:00.000000000 Z
12
+ date: 2014-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeadmin