Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ba089bf2ba
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (15 sloc) 0.513 kB
require File.dirname(__FILE__) + '/lib/squirrel.rb'
class << ActiveRecord::Base
include Squirrel::Hook
end
if defined?(ActiveRecord::NamedScope::Scope)
class ActiveRecord::NamedScope::Scope
include Squirrel::NamedScopeHook
end
end
[ ActiveRecord::Associations::HasManyAssociation,
ActiveRecord::Associations::HasAndBelongsToManyAssociation,
ActiveRecord::Associations::HasManyThroughAssociation
].each do |association_class|
association_class.send(:include, Squirrel::Hook)
end
Jump to Line
Something went wrong with that request. Please try again.