Skip to content

Instantly share code, notes, and snippets.

@jeremy6d
Created June 5, 2009 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremy6d/124409 to your computer and use it in GitHub Desktop.
Save jeremy6d/124409 to your computer and use it in GitHub Desktop.
Loading development environment (Rails 2.2.2)
>> Numeric.subclasses
=> ["Bignum", "Float", "Fixnum", "Integer", "Rational", "Date::Infinity", "BigDecimal"]
>> PortfolioCategory.superclass
=> ActiveRecord::Base
>> TypeCategory.superclass
=> PortfolioCategory(id: integer, name: string, description: text, type: string, created_at: datetime, updated_at: datetime, slug: string)
>> PortfolioCategory.subclass
NoMethodError: undefined method `subclass' for #<Class:0x19f4588>
from /Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1833:in `method_missing_without_paginate'
from /Users/jeremyweiland/Development/acorn-trunk/vendor/plugins/will_paginate/lib/will_paginate/finder.rb:167:in `method_missing'
from (irb):4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment