wheels 0.0.34 → 0.0.35
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/blogs_controller.rb +6 -5
- data/wheels.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.35
|
@@ -11,13 +11,14 @@ class BlogsController < InheritedResources::Base
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def collection
|
14
|
-
@blogs ||=
|
14
|
+
@blogs ||= Blog.where(:user_id=>@user.id).
|
15
15
|
paginate(:page => params[:page], :order => 'created_at DESC' )
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
protected
|
19
|
+
def begin_of_association_chain
|
20
|
+
@tags = Blog.where(:user_id=>@user.id).tag_counts.sort{|t, u| t.count <=> u.count}
|
21
|
+
return @user
|
22
|
+
end
|
22
23
|
end
|
23
24
|
|
data/wheels.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wheels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 89
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 35
|
10
|
+
version: 0.0.35
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tyler Gannon
|