lib/generators/jinda/templates/app/models/user.rb in jinda-0.1.8 vs lib/generators/jinda/templates/app/models/user.rb in jinda-0.1.9

- old
+ new

@@ -8,10 +8,11 @@ field :role, :type => String field :user, :type => String field :auth_token, :type => String field :password_reset_token, :type => String field :password_reset_sent_at,:type => DateTime + field :image, :type => String belongs_to :identity, :polymorphic => true, :optional => true has_many :xmains, :class_name => "Jinda::Xmain" @@ -40,9 +41,10 @@ user.email = auth.info.email user.uid = auth.uid user.provider = auth.provider user.code = auth.info.name user.role = "M" + user.image = auth.info.image end end end def ma_secured?