nosweat 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nosweat.rb +2 -7
- metadata +1 -1
data/lib/nosweat.rb
CHANGED
@@ -6,11 +6,6 @@
|
|
6
6
|
|
7
7
|
#require 'nosweat/coder'
|
8
8
|
|
9
|
-
class
|
10
|
-
|
11
|
-
find(:all, :order => "article DESC")
|
12
|
-
end
|
13
|
-
def self.articleasc
|
14
|
-
find(:all, :order => "article")
|
15
|
-
end
|
9
|
+
class Order < ActiveRecord::Base
|
10
|
+
default_scope :order => 'article DESC'
|
16
11
|
end
|