Class: BlogPost

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/blog_post.rb

Constant Summary collapse

@@default_posterous_user =
nil
@@read_timeout =
5.seconds
@@post_limit =
3
@@debug =
false

Class Method Summary collapse

Class Method Details

.cache_posts(posterous_user = default_posterous_user, count = post_limit) ⇒ Object



17
18
19
20
# File 'app/models/blog_post.rb', line 17

def self.cache_posts( posterous_user = default_posterous_user, count = post_limit )
  posts = self.read_posts( posterous_user, count)
  self.update_posts(posts)
end