File: subscriber.rb

package info (click to toggle)
ruby-protected-attributes 1.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 424 kB
  • ctags: 629
  • sloc: ruby: 2,269; makefile: 3
file content (7 lines) | stat: -rw-r--r-- 166 bytes parent folder | download
1
2
3
4
5
6
7
class Subscriber < ActiveRecord::Base
  attr_accessible(nil)

  self.primary_key = 'nick'
  has_many :subscriptions
  has_many :books, :through => :subscriptions
end