18 lines
349 B
Ruby
18 lines
349 B
Ruby
|
# -*- encoding : utf-8 -*-
|
||
|
module RelatedModels
|
||
|
extend ActiveSupport::Autoload
|
||
|
|
||
|
autoload :ClassMethods
|
||
|
autoload :BelongsToHelpers
|
||
|
autoload :PolymorphicHelpers
|
||
|
autoload :UrlHelpers
|
||
|
autoload :Base
|
||
|
end
|
||
|
|
||
|
class ActionController::Base
|
||
|
#include ClassMethods
|
||
|
def self.is_related_controller!
|
||
|
RelatedModels::Base.is_child!(self)
|
||
|
end
|
||
|
end
|