Skip to content

Commit 27ce04f

Browse files
committed
Merge pull request #58 from Zhomart/paginator
Paginator, fixes #57
2 parents aa057b5 + 8e9426a commit 27ce04f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# module ActiveAdmin
2-
# module Helpers
3-
# module Collection
4-
# def collection_size(collection=collection)
5-
# raise collection.inspect
6-
# collection.count
7-
# end
8-
# end
9-
# end
10-
# end
1+
module ActiveAdmin
2+
module Helpers
3+
module Collection
4+
def collection_size(collection=collection)
5+
collection.count(true)
6+
end
7+
end
8+
end
9+
end

test_app/config/initializers/devise.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
77
config.mailer_sender = "[email protected]"
88

9+
config.secret_key = '8c57910ca9a61008a2566fc337a67ddc043b91d64e0420ca8dd691e80cf362bc8a480ecb1465bd4ae958e715d354264a97934c058c3e14f5d552012ff5755122'
10+
911
# Configure the class responsible to send e-mails.
1012
# config.mailer = "Devise::Mailer"
1113

0 commit comments

Comments
 (0)