Sha256: 20ce550709516164194485d5489eca8a2a9f89a796d602e1c8409726b41ee63d
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
$LOAD_PATH << File.dirname(__FILE__) # require 'netzke/core_ext' require 'netzke/core' require 'netzke/base' module Netzke autoload :Core, 'netzke/core' autoload :ExtComponent, 'netzke/ext_component' class Engine < ::Rails::Engine config.after_initialize do # Do some initialization which is only possible after Rails is initialized Netzke::Core.ext_location ||= ::Rails.root.join("public", "extjs") Netzke::Core.with_icons = File.exists?("#{Rails.root}/public#{Netzke::Core.icons_uri}") if Netzke::Core.with_icons.nil? Netzke::Core.persistence_manager_class = Netzke::Core.persistence_manager.constantize rescue nil end end end # Rails specific if defined? Rails require 'netzke/rails/routes' ActiveSupport.on_load(:action_controller) do require 'netzke/rails/controller_extensions' include Netzke::ControllerExtensions end ActiveSupport.on_load(:action_view) do require 'netzke/rails/action_view_ext' include Netzke::ActionViewExt end # Make this plugin auto-reloadable for easier development # ActiveSupport::Dependencies.autoload_once_paths.delete(File.join(File.dirname(__FILE__))) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
netzke-core-0.6.4 | lib/netzke-core.rb |