enju_bookmark 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/controllers/bookmark_stats_controller.rb +6 -2
- data/lib/enju_bookmark/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- metadata +4 -2
|
@@ -16,8 +16,12 @@ class BookmarkStatsController < ApplicationController
|
|
|
16
16
|
# GET /bookmark_stats/1
|
|
17
17
|
# GET /bookmark_stats/1.json
|
|
18
18
|
def show
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
if params[:format] == 'csv'
|
|
20
|
+
per_page = 65534
|
|
21
|
+
else
|
|
22
|
+
per_page = BookmarkStatHasManifestation.per_page
|
|
23
|
+
end
|
|
24
|
+
@stats = @bookmark_stat.bookmark_stat_has_manifestations.order('bookmarks_count DESC, manifestation_id').page(params[:page]).per_page(per_page)
|
|
21
25
|
|
|
22
26
|
respond_to do |format|
|
|
23
27
|
format.html # show.html.erb
|
|
File without changes
|
data/spec/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: enju_bookmark
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.11
|
|
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: 2012-05-
|
|
12
|
+
date: 2012-05-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -379,6 +379,7 @@ files:
|
|
|
379
379
|
- spec/dummy/config/locales/en.yml
|
|
380
380
|
- spec/dummy/config/routes.rb
|
|
381
381
|
- spec/dummy/config.ru
|
|
382
|
+
- spec/dummy/db/development.sqlite3
|
|
382
383
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
|
383
384
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
|
384
385
|
- spec/dummy/db/migrate/006_create_items.rb
|
|
@@ -552,6 +553,7 @@ test_files:
|
|
|
552
553
|
- spec/dummy/config/locales/en.yml
|
|
553
554
|
- spec/dummy/config/routes.rb
|
|
554
555
|
- spec/dummy/config.ru
|
|
556
|
+
- spec/dummy/db/development.sqlite3
|
|
555
557
|
- spec/dummy/db/migrate/001_create_patrons.rb
|
|
556
558
|
- spec/dummy/db/migrate/005_create_manifestations.rb
|
|
557
559
|
- spec/dummy/db/migrate/006_create_items.rb
|