Sha256: 6abff27189c5ee4032546ae45ab93c1e87ef03ea6b81440254d641233298de1b

Contents?: true

Size: 769 Bytes

Versions: 1

Compression:

Stored size: 769 Bytes

Contents

# NetzkeCore
require 'netzke/js_class_builder'
require 'netzke/base'
require 'netzke/core_ext'
require 'netzke/controller_extensions'

# Vendor
require 'vendor/facets/hash/recursive_merge'


%w{ models controllers }.each do |dir|
  path = File.join(File.dirname(__FILE__), 'app', dir)
  $LOAD_PATH << path
  ActiveSupport::Dependencies.load_paths << path
  ActiveSupport::Dependencies.load_once_paths.delete(path)
end

# raise 'test'

ActionController::Base.class_eval do
  include Netzke::ControllerExtensions
end

# Make this plugin reloadable for easier development
ActiveSupport::Dependencies.load_once_paths.delete(File.join(File.dirname(__FILE__)))

# Include the javascript
Netzke::Base.config[:javascripts] << "#{File.dirname(__FILE__)}/../javascripts/core.js"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netzke-core-0.1.1.1 lib/netzke-core.rb