D
Daniel Waite
module FunFunModule
def self.included(base)
base.extend ClassMethods
class << base # <- Is this the instance of ActiveRecord?
...
end
end
module ClassMethods
...
end
end
The above code is included into ActiveRecord via...
ActiveRecord::Base.send :include, FunFunModule
Is the class << base on line 6 the actual instance of the AR model?
def self.included(base)
base.extend ClassMethods
class << base # <- Is this the instance of ActiveRecord?
...
end
end
module ClassMethods
...
end
end
The above code is included into ActiveRecord via...
ActiveRecord::Base.send :include, FunFunModule
Is the class << base on line 6 the actual instance of the AR model?