fix instruments part of payload
This commit is contained in:
parent
662fcf0112
commit
6ba6b7d595
|
|
@ -2,7 +2,7 @@ module JamRuby
|
|||
class User < ActiveRecord::Base
|
||||
|
||||
attr_accessible :name, :email, :password, :password_confirmation
|
||||
attr_accessor :updating_password, :online, :photo_url
|
||||
attr_accessor :updating_password
|
||||
|
||||
self.primary_key = 'id'
|
||||
|
||||
|
|
|
|||
|
|
@ -6,5 +6,9 @@ module JamRuby
|
|||
belongs_to :user
|
||||
belongs_to :instrument
|
||||
|
||||
def description
|
||||
@description = self.instrument.description
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue