Sha256: 85f9e1896cf892ba4e0cdf5389d0d408cf824f5bca34f1e79195f84fd825ff6f
Contents?: true
Size: 631 Bytes
Versions: 7
Compression:
Stored size: 631 Bytes
Contents
require 'arid_cache' class User < ActiveRecord::Base has_many :companies, :foreign_key => :owner_id named_scope :companies, :joins => :companies named_scope :successful, :joins => :companies, :conditions => 'companies.employees > 50', :group => 'users.id' def big_companies companies.find :all, :conditions => [ 'employees > 20' ] end def pet_names ['Fuzzy', 'Peachy'] end def method_missing(method, *args) if method == :is_high? true else super end end def respond_to?(method) if method == :respond_not_overridden true else super end end end
Version data entries
7 entries across 7 versions & 1 rubygems