Sha256: 77d9155f16c0765a5bfc67b1feb92f480154ca251e1f63740c99698352dd7a54
Contents?: true
Size: 1.35 KB
Versions: 96
Compression:
Stored size: 1.35 KB
Contents
model_path = "#{File.dirname(__FILE__)}/app/models" helper_path = "#{File.dirname(__FILE__)}/app/helpers" controller_path = "#{File.dirname(__FILE__)}/app/controllers" $LOAD_PATH << model_path $LOAD_PATH << controller_path ActiveSupport::Dependencies.load_paths += [ controller_path, model_path, helper_path ] require 'six/query' #require 'sixsense' #Appsetting.send(:include, Six::Appmanager::Appsetting) #Appsetting.class_eval {include Six::Appmanager::Appsetting} =begin require 'active_scaffold' # TODO: clean up extensions. some could be organized for autoloading, and others could be removed entirely. Dir["#{File.dirname __FILE__}/lib/extensions/*.rb"].each { |file| require file } ActionController::Base.send(:include, ActiveScaffold) ActionController::Base.send(:include, RespondsToParent) ActionController::Base.send(:include, ActiveScaffold::Helpers::ControllerHelpers) ActionView::Base.send(:include, ActiveScaffold::Helpers::ViewHelpers) ActionController::Base.class_eval {include ActiveRecordPermissions::ModelUserAccess::Controller} ActiveRecord::Base.class_eval {include ActiveRecordPermissions::ModelUserAccess::Model} ActiveRecord::Base.class_eval {include ActiveRecordPermissions::Permissions} require 'bridges/bridge.rb' I18n.load_path += Dir[File.join(File.dirname(__FILE__), 'lib', 'active_scaffold', 'locale', '*.{rb,yml}')] =end
Version data entries
96 entries across 96 versions & 1 rubygems