public
Description: Plugin for querying by dates on ActiveRecord models
Clone URL: git://github.com/joshuaclayton/acts_as_archivable.git
Search Repo:
Moved instance method on integer
joshuaclayton (author)
Tue Mar 18 20:00:11 -0700 2008
commit  ac6461ade0ec1f161e2c87bd267ed27060394514
tree    46dc46f25905fca1eac1d77a19dc7b3de741155b
parent  bbd33bda515d82df320ad91de3d8cda0e57c8f25
...
1
2
3
4
5
6
7
8
9
10
 
11
...
1
 
 
 
 
 
 
 
 
 
2
3
0
@@ -1,10 +1,2 @@
0
 require 'acts_as_archivable'
0
-
0
-class Integer
0
- def to_days
0
- self/60/60/24
0
- end
0
-end
0
-
0
-ActiveRecord::Base.send(:include, Shooter::Acts::Archivable)
0
-
0
+ActiveRecord::Base.send(:include, Shooter::Acts::Archivable)
0
\ No newline at end of file
...
138
139
140
141
142
 
 
 
 
 
 
 
...
138
139
140
 
141
142
143
144
145
146
147
148
0
@@ -138,4 +138,10 @@ module Shooter #:nodoc:
0
       end
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end
0
+
0
+class Integer
0
+ def to_days
0
+ self/60/60/24
0
+ end
0
+end

Comments

    No one has commented yet.