app/models/cadenero/user.rb in cadenero-0.0.2.b6 vs app/models/cadenero/user.rb in cadenero-0.0.2.b7

- old
+ new

@@ -5,12 +5,11 @@ has_secure_password has_many :accounts, class_name: "Cadenero::V1::Account", foreign_key: "owner_id" has_many :members, class_name: "Cadenero::Member" has_many :memberships, through: :members, source: :account - # Obtain the authentication_token from the members to be use for the User + # Map the auth_tokens for each account that the User is memeber def auth_token members.map{|member| member.auth_token} end - end end