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