Sha256: c845c29f4d3f2dc128d74607a836f62746e8edc74d9ce9f8bb7d251f0e75bc57
Contents?: true
Size: 744 Bytes
Versions: 1
Compression:
Stored size: 744 Bytes
Contents
module JavascriptAutoInclude # Load model backend require 'javascript_auto_include/dependency' require 'javascript_auto_include/source_file' # Tie into Rails class Railtie < Rails::Railtie initializer "javascript_auto_include.action_controller" do |app| require 'javascript_auto_include/helpers/action_controller' ActionController::Base.send(:include, JavascriptAutoInclude::Helpers::ActionController) ActionController::Base.send(:before_filter, :identify_controller_and_action) end initializer "javascript_auto_include.action_view" do |app| require 'javascript_auto_include/helpers/action_view' ActionView::Base.send(:include, JavascriptAutoInclude::Helpers::ActionView) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
javascript_auto_include-0.2.0 | lib/javascript_auto_include.rb |