rosa-build/lib/plugins/related_models.rb

18 lines
349 B
Ruby
Raw Normal View History

# -*- 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