require 'extensions' require 'rexml' require 'active_record/has_many_association' require 'active_record/has_many_through_association' require 'active_record/table_definition' require 'action_view_extensions/base' require 'hobo' require 'hobo/dryml' require 'hobo/model' require 'hobo/dryml/template' require 'hobo/dryml/taglib' require 'hobo/dryml/template_environment' require 'hobo/dryml/template_handler' require 'hobo/plugins' require 'extensions/test_case' if RAILS_ENV == "test" ActionView::Base.register_template_handler("dryml", Hobo::Dryml::TemplateHandler) class ActionController::Base def self.hobo_user_controller(model=nil) include Hobo::ModelController self.model = model if model include Hobo::UserController end def self.hobo_model_controller(model=nil) include Hobo::ModelController self.model = model if model end def self.hobo_controller(model=nil) include Hobo::Controller end end class ActiveRecord::Base def self.hobo_model include Hobo::Model end end # Default settings Hobo.developer_features = ["development", "test"].include?(RAILS_ENV) if Hobo.developer_features? == nil