few updates with fb integration and some other changes in user and supports data to android
This commit is contained in:
1 parent
c4db6e5830
commit
0354bf5b15
14 files changed
+267
-285
No files matched your search
@@ -4,5 +4,8 @@ class CssDefault < Stylesheet
|
||||
# belongs_to :desktop_widget
|
||||
|
||||
belongs_to :css, polymorphic: true
|
||||
def content
|
||||
self.file.read.force_encoding("UTF-8") rescue ''
|
||||
end
|
||||
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class Facebook
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :fb_identifier
|
||||
field :connected, type: Boolean
|
||||
|
||||
belongs_to :user
|
||||
end
|
||||
@@ -26,6 +26,7 @@ class User
|
||||
|
||||
has_many :managing_apps,:class_name => "AppManager", :dependent => :destroy
|
||||
has_one :desktop, :autosave => true, :dependent => :destroy
|
||||
has_one :facebook, :autosave => true, :dependent => :destroy
|
||||
has_many :other_accounts, :autosave => true, :dependent => :destroy
|
||||
# has_many :journals, :autosave => true, :dependent => :destroy
|
||||
# has_many :papers, :autosave => true, :dependent => :destroy
|
||||
|
||||
Reference in new issue
Block a user