added a public key to post

This commit is contained in:
ilya 2010-09-27 16:59:54 -07:00
parent 52313b799b
commit c2b84fd9c6
2 changed files with 4 additions and 1 deletions

View file

@ -52,7 +52,7 @@ class AspectsController < ApplicationController
@fb_access_url = MiniFB.oauth_url(FB_APP_ID, APP_CONFIG[:pod_url] + "services/create",
:scope=>MiniFB.scopes.join(","))
@posts = current_user.visible_posts(:by_members_of => :all).paginate :page => params[:page], :per_page => 15, :order => 'created_at DESC'
@posts = current_user.raw_visible_posts.all(:public => true, :order => 'created_at DESC').paginate :page => params[:page], :per_page => 15, :order => 'created_at DESC'
respond_with @aspect
end

View file

@ -13,6 +13,9 @@ class Post
xml_accessor :_id
xml_accessor :person, :as => Person
xml_reader :public
key :public , Boolean, :default => false
key :person_id, ObjectId
key :user_refs, Integer, :default => 0