muck-raker 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -70,13 +70,13 @@ class Recommender::EntriesController < ApplicationController
70
70
  def _search operator = :or
71
71
  @page = (params[:page] || 0).to_i
72
72
  @per_page = (params[:per_page] || 10).to_i
73
- @offset = (@page-1)*@per_page
73
+ @offset = @page*@per_page
74
74
  if !@search.nil?
75
75
  @term_list = URI.escape(@search)
76
76
  results = Entry.search(@search, I18n.locale.to_s, @per_page, @offset, operator)
77
77
  @hit_count = results.total
78
78
  @results = results.results
79
- @paginated_results = @results.paginate(:page => @page, :per_page => @per_page, :total_entries => @hit_count)
79
+ @paginated_results = @results.paginate(:page => @page+1, :per_page => @per_page, :total_entries => @hit_count)
80
80
  end
81
81
  end
82
82
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{muck-raker}
5
- s.version = "0.1.9"
5
+ s.version = "0.1.10"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Joel Duffin Justin Ball"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-raker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Duffin Justin Ball