Permalink
Browse files

expansion includes all behaviours before unobtrusive.js

  • Loading branch information...
1 parent ed149cf commit 5b77bf4d961d27f33d2b7e884246b34ffe256638 @dwg dwg committed Dec 28, 2008
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 init.rb
View
@@ -1 +1,2 @@
.project
+.loadpath
View
@@ -1,3 +1,3 @@
ActionView::Helpers::AssetTagHelper.register_javascript_expansion(
- :unobtrusive=>%w(lowpro behaviours/date_selector behaviours/draggable behaviours/inplace_editor unobtrusive)
+ :unobtrusive=>['lowpro'].concat(Dir.glob(File.join(ActionView::Helpers::AssetTagHelper::JAVASCRIPTS_DIR, 'behaviours', '*.js')).map {|fp| "behaviours/#{File.basename(fp).sub('.js', '')}"}) << 'unobtrusive'
)

0 comments on commit 5b77bf4

Please sign in to comment.