Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 247 Bytes
class Book < ActiveRecord::Base
attr_accessible :name, :author_tokens
has_many :authorships
has_many :authors, :through => :authorships
attr_reader :author_tokens
def author_tokens=(ids)
self.author_ids = ids.split(",")
end
end
Something went wrong with that request. Please try again.