Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (20 sloc) 1.212 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
require 'ext_scaffold_core_extensions/active_record/base'
require 'ext_scaffold_core_extensions/array'
require 'ext_tree_extensions/active_record/base'
require 'ext_tree_extensions/action_controller/base'
require 'ext_datetime_extensions/active_record/base'
require 'routing/routes'
require 'javascript_expansions'

ActiveRecord::Base.send(:include, ExtScaffoldCoreExtensions::ActiveRecord::Base)
ActiveRecord::Base.send(:include, ExtTreeExtensions::ActiveRecord::Base)
ActiveRecord::Base.send(:include, ExtDatetimeExtensions::ActiveRecord::Base)
ActionController::Base.send(:include, ExtTreeExtensions::ActionController::Base)
Array.send(:include, ExtScaffoldCoreExtensions::Array)

ExtMvcRails::JavascriptExpansions.register

#Edge seemed to break this, required necessary libs by hand above instead
# Load CoreExtensions
# Dir[File.join("#{File.dirname(__FILE__)}", 'lib', 'ext_scaffold_core_extensions', '**', '*.rb')].each do |f|
# extension_module = f.sub(/(.*)(ext_scaffold_core_extensions.*)\.rb/,'\2').classify.constantize
# base_module = f.sub(/(.*ext_scaffold_core_extensions.)(.*)\.rb/,'\2').classify.constantize
# base_module.class_eval { include extension_module }
# end
Something went wrong with that request. Please try again.