mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 09:40:13 +01:00
Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
This commit is contained in:
parent
6a42901514
commit
4cbf5a34d3
2269 changed files with 0 additions and 0 deletions
21
vendor/plugins/unobtrusive_javascript/init.rb
vendored
Normal file
21
vendor/plugins/unobtrusive_javascript/init.rb
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
require 'actionview_helpers_patches'
|
||||
require 'prototype_helper_patches'
|
||||
require 'scriptaculous_helper_patches'
|
||||
require 'asset_tag_helper_patches'
|
||||
require 'tag_helper_patches'
|
||||
require 'behaviour_caching'
|
||||
require 'ujs'
|
||||
|
||||
# make plugin controllers and views available to app
|
||||
config.load_paths += %W(#{UJS::PLUGIN_CONTROLLER_PATH})
|
||||
Rails::Initializer.run(:set_load_path, config)
|
||||
|
||||
# add methods to action controller base
|
||||
ActionController::Base.send(:include, UJS::ControllerMethods)
|
||||
|
||||
# load in the helpers and caching code
|
||||
ActionController::Base.send(:helper, UJS::Helpers)
|
||||
ActionController::Base.send(:include, UJS::BehaviourCaching)
|
||||
|
||||
# require the controller
|
||||
require 'unobtrusive_javascript_controller'
|
||||
Loading…
Add table
Add a link
Reference in a new issue