m
[playfm2.git] / app / models / user.rb
blob14dd7e040f1066d8fbc11cfb78c0b837792513a6
1 class User < ActiveRecord::Base
3   class << self
4     attr_accessor :sessionkey, :sessionkey_time, :notifications_limit, :notifications_number, :default_status
5   end
7   @notifications_limit  = Hash.new(0)
8   @notifications_number = Hash.new(0)
10   def facebook_session
11     @facebook_session ||= returning Facebooker::Session.create do |session|
12       session.secure_with!(session_key,facebook_id,1.day.from_now)
13     end
14   end
16 end