include_behaviors 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/include_behaviors.gemspec +2 -2
- data/lib/include_behaviors.rb +1 -1
- metadata +1 -1
data/include_behaviors.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{include_behaviors}
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.4"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Nathan Verni"]
|
@@ -26,4 +26,4 @@ Gem::Specification.new do |s|
|
|
26
26
|
end
|
27
27
|
else
|
28
28
|
end
|
29
|
-
end
|
29
|
+
end
|
data/lib/include_behaviors.rb
CHANGED
@@ -2,7 +2,7 @@ module Focastle
|
|
2
2
|
module IncludeBehaviors
|
3
3
|
module InstanceMethods
|
4
4
|
def include_behaviors
|
5
|
-
javascript_include_tag "behaviors/#{params[:controller]}/#{params[:action]}.js" unless @skip_js
|
5
|
+
javascript_include_tag "behaviors/#{params[:controller]}/#{@js_behavior.to_s || params[:action]}.js" unless @skip_js
|
6
6
|
end
|
7
7
|
end
|
8
8
|
end
|