Sha256: 57a9801a588aa7ffb3233a141705c0a5285f96f2031389e9f4b068d31a65e903
Contents?: true
Size: 783 Bytes
Versions: 5
Compression:
Stored size: 783 Bytes
Contents
class SubjectHeadingTypeHasSubject < ActiveRecord::Base attr_accessible :subject_id, :subject_heading_type_id belongs_to :subject #, :polymorphic => true belongs_to :subject_heading_type validates_presence_of :subject, :subject_heading_type validates_associated :subject, :subject_heading_type validates_uniqueness_of :subject_id, :scope => :subject_heading_type_id def self.per_page 10 end end # == Schema Information # # Table name: subject_heading_type_has_subjects # # id :integer not null, primary key # subject_id :integer not null # subject_type :string(255) # subject_heading_type_id :integer not null # created_at :datetime # updated_at :datetime #
Version data entries
5 entries across 5 versions & 1 rubygems