Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@smtlaissezfaire
Created May 9, 2009 16:55
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 smtlaissezfaire/10c44efda79f31fd2443 to your computer and use it in GitHub Desktop.
Save smtlaissezfaire/10c44efda79f31fd2443 to your computer and use it in GitHub Desktop.
e = Event.find(:first)
>> e = Event.find(:first)
=> #<Event id: 16, title: ...>
>> e.comments
Problems loading RmagickProcessor: no such file to load -- RMagick
=> []
>> e.comments.class
=> Array
>> e.comments.superclass
=> ActiveRecord::Base # wtf?
>> e.comments.class.superclass
=> Object
>> e.comments.respond_to?(:find)
=> true
>> pp e.comments.included_modules
[Oink::OinkInstanceTypeCounterInstanceMethods,
HasFinder::ActiveRecord,
ActionView::Helpers::SanitizeHelper,
SanitizeHtmlFrom,
ChangeLogger,
CreateUpdateUserMonitor::ActiveRecordMethods,
VersionedFields::ModelExtensions,
UniqueChildByBoolean::ModelExtensions,
HasManyPolymorphicItems::ModelExtensions,
WillPaginate::Finder,
ValidatesDateTime::MultiparameterAttributes,
ValidatesDateTime,
Resourceful::Serialize::Model,
GeoKit::ActsAsMappable,
ActiveRecord::Acts::Tree,
ActiveRecord::Acts::Taggable,
Multiup::Acts::Slugable,
ActiveRecord::Acts::List,
ActiveRecord::Dirty,
ActiveRecord::AttributeMethods,
ActiveRecord::Serialization,
ActiveRecord::Calculations,
ActiveRecord::Reflection,
ActiveRecord::Transactions,
ActiveRecord::Aggregations,
ActiveRecord::Associations,
ActiveRecord::Timestamp,
ActiveRecord::Observing,
ActiveRecord::Callbacks,
ActiveRecord::Locking::Pessimistic,
ActiveRecord::Locking::Optimistic,
ActiveRecord::Validations,
Flavorpill::CoreExtensions::Object,
Ym4r::GmPlugin,
ActsAsCached::Mixin,
ERB::Util,
InstanceExecMethods,
Base64::Deprecated,
Base64,
PP::ObjectMixin,
Kernel]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment