Skip to content

Instantly share code, notes, and snippets.

Created July 10, 2012 19:13
Show Gist options
  • Save anonymous/3085591 to your computer and use it in GitHub Desktop.
Save anonymous/3085591 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
attr_accessible :fb_id, :name, :profile_img_url, :spotify_id
has_many :votings
make_voter
end
class Song < ActiveRecord::Base
attr_accessible :album_name, :artist_name, :name, :spotify_id, :spotify_url, :thumb_url
make_voteable
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment