include_behaviors 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/include_behaviors.gemspec +1 -1
- data/lib/include_behaviors.rb +4 -1
- metadata +1 -1
data/include_behaviors.gemspec
CHANGED
data/lib/include_behaviors.rb
CHANGED
@@ -2,7 +2,10 @@ module Focastle
|
|
2
2
|
module IncludeBehaviors
|
3
3
|
module InstanceMethods
|
4
4
|
def include_behaviors
|
5
|
-
|
5
|
+
unless @skip_js
|
6
|
+
action = @js_action.blank? ? params[:action] : @js_action.to_s
|
7
|
+
javascript_include_tag "behaviors/#{params[:controller]}/#{action}.js"
|
8
|
+
end
|
6
9
|
end
|
7
10
|
end
|
8
11
|
end
|