Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

expansion includes all behaviours before unobtrusive.js

  • Loading branch information...
commit 5b77bf4d961d27f33d2b7e884246b34ffe256638 1 parent ed149cf
Arni Einarsson authored December 28, 2008

Showing 2 changed files with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 1  .gitignore
  2. 2  init.rb
1  .gitignore
... ...
@@ -1 +1,2 @@
1 1
 .project
  2
+.loadpath
2  init.rb
... ...
@@ -1,3 +1,3 @@
1 1
 ActionView::Helpers::AssetTagHelper.register_javascript_expansion(
2  
-  :unobtrusive=>%w(lowpro behaviours/date_selector behaviours/draggable behaviours/inplace_editor unobtrusive)
  2
+  :unobtrusive=>['lowpro'].concat(Dir.glob(File.join(ActionView::Helpers::AssetTagHelper::JAVASCRIPTS_DIR, 'behaviours', '*.js')).map {|fp| "behaviours/#{File.basename(fp).sub('.js', '')}"}) << 'unobtrusive'
3 3
 )

0 notes on commit 5b77bf4

Please sign in to comment.
Something went wrong with that request. Please try again.