unknown_admin 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,11 @@ module Admin
33
33
 
34
34
  def collection
35
35
  @search = end_of_association_chain.search(params[:q])
36
- get_collection_ivar || set_collection_ivar(@search.result.paginate(:page => params[:page], :per_page => per_page))
36
+ unless params[:all_pages]
37
+ get_collection_ivar || set_collection_ivar(@search.result.paginate(:page => params[:page], :per_page => per_page))
38
+ else
39
+ get_collection_ivar || set_collection_ivar(@search.result)
40
+ end
37
41
  end
38
42
 
39
43
  def per_page
@@ -1,3 +1,3 @@
1
1
  module UnknownAdmin
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unknown_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-13 00:00:00.000000000 Z
13
+ date: 2013-06-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: inherited_resources