include_behaviors 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{include_behaviors}
3
- s.version = "0.0.3"
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
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: include_behaviors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Verni