Skip to content
Browse files

something

  • Loading branch information...
1 parent 54db5ab commit e47304fa7232c4a2efbb965e400502073465ed3f @Alex-Poon Alex-Poon committed May 16, 2012
Showing with 4 additions and 9 deletions.
  1. +0 −1 app/controllers/home_controller.rb
  2. +3 −4 app/models/link.rb
  3. +1 −1 app/models/linkQueue.rb
  4. +0 −3 app/models/user.rb
View
1 app/controllers/home_controller.rb
@@ -11,6 +11,5 @@ def bookmark
end
def test
- current_user.sendDailyEmail
end
end
View
7 app/models/link.rb
@@ -13,10 +13,9 @@ class Link
field :parsely_url, :type => String
field :tags, :type => Array
- after_save :addotoQueue
+ after_save :add_to_queue
private
-
def self.makeAbsolute(link)
link = URI.unescape(link)
puts 'linkage ' + link
@@ -27,8 +26,8 @@ def self.makeAbsolute(link)
end
end
- protected
- def addtoQueue()
+ def add_to_queue()
+
end
end
View
2 app/models/linkQueue.rb
@@ -1,4 +1,4 @@
-class Linkquene
+class Linkqueue
include Mongoid::Document
include Mongoid::Timestamps
View
3 app/models/user.rb
@@ -52,9 +52,6 @@ class User
validates_uniqueness_of :email, :case_sensitive => false
attr_accessible :name, :email, :password, :password_confirmation, :remember_me
- def sendDailyEmail
- puts self.links.where(:created_at.lte => Date.today.day).execute.to_a.inspect
- end
end

0 comments on commit e47304f

Please sign in to comment.
Something went wrong with that request. Please try again.