Sha256: 2e472bfa58ade01e579315f286fde11862faec839f7a03cc7a40e47fb18ad9dd
Contents?: true
Size: 367 Bytes
Versions: 15
Compression:
Stored size: 367 Bytes
Contents
class Room < ActiveRecord::Base set_primary_keys :dorm_id, :room_id belongs_to :dorm has_many :room_attribute_assignments, :foreign_key => [:dorm_id, :room_id] has_many :room_attributes, :through => :room_attribute_assignments def find_custom_room_attributes room_attributes.find(:all, :conditions => ["room_attributes.name != ?", "keg"]) end end
Version data entries
15 entries across 15 versions & 3 rubygems