Module: Focastle::IncludeBehaviors::InstanceMethods
- Defined in:
- lib/include_behaviors.rb
Instance Method Summary collapse
Instance Method Details
#include_behaviors ⇒ Object
4 5 6 7 8 9 |
# File 'lib/include_behaviors.rb', line 4 def include_behaviors unless @skip_js action = @js_action.blank? ? params[:action] : @js_action.to_s javascript_include_tag "behaviors/#{params[:controller]}/#{action}.js" end end |