Skip to content

Instantly share code, notes, and snippets.

@parolkar
Created April 2, 2009 11:23
Show Gist options
  • Save parolkar/89143 to your computer and use it in GitHub Desktop.
Save parolkar/89143 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
has_profile_items [:first_name]
#has_pfeed_bucket
def buy(x)
puts "buying"
end
def sell(x)
puts "selling"
end
def do_required_job(x)
puts "doing required job"
end
def find_friends
puts "finding friends"
end
emits_pfeeds_for [:buy,:sell,:do_required_job,:find_friends]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment