Sha256: 56f876e731ecc974046fb3ff8089bd5870d59fab397506b640f8e10622050193
Contents?: true
Size: 789 Bytes
Versions: 5
Compression:
Stored size: 789 Bytes
Contents
require 'arid_cache' class User < ActiveRecord::Base has_many :companies, :foreign_key => :owner_id has_many :empty_user_relations # This must always return an empty list send(Rails.rails3? ? :scope : :named_scope, :companies, :joins => :companies) send(Rails.rails3? ? :scope : :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, include_private=false) if method == :respond_not_overridden true else super end end end
Version data entries
5 entries across 5 versions & 1 rubygems