Class: FbRails::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/fb_rails/config.rb

Class Method Summary collapse

Class Method Details

.user_classObject



6
7
8
9
10
11
12
# File 'lib/fb_rails/config.rb', line 6

def user_class
  klass = (user_class_name || 'User').constantize
  klass.class_eval do
    attr_accessor :access_token
  end unless klass.method_defined?(:access_token)
  klass
end