tkh_content 0.1.2 → 0.1.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.1.3
6
+
7
+ * Debugged blog controller index method query. Now it's properly returning blog posts by most recently published and without offset. Still need to do the pagination.
8
+
9
+
5
10
  ## 0.1.2
6
11
 
7
12
  * Refactored generation of short_title attribute. Moved it ot the create_pages migration to avoid conflict in globalize3.
@@ -1,7 +1,7 @@
1
1
  class BlogController < ApplicationController
2
2
 
3
3
  def index
4
- @posts = Page.for_blog.published.order('updated_at').offset(60).limit(30)
4
+ @posts = Page.for_blog.published.order('published_at desc')
5
5
  render :layout => 'blog'
6
6
  end
7
7
 
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -187,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  segments:
189
189
  - 0
190
- hash: 2751770441270569209
190
+ hash: -1251104337554282840
191
191
  required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  none: false
193
193
  requirements:
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  segments:
198
198
  - 0
199
- hash: 2751770441270569209
199
+ hash: -1251104337554282840
200
200
  requirements: []
201
201
  rubyforge_project:
202
202
  rubygems_version: 1.8.23