Module: Neo4j::MetaModel::ApplicationHelper
- Defined in:
- app/helpers/neo4j/meta_model/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#action_and_controller_javascript_include_tag ⇒ Object
4 5 6 7 8 9 |
# File 'app/helpers/neo4j/meta_model/application_helper.rb', line 4 def action_and_controller_javascript_include_tag capture do concat javascript_include_tag controller_path if Rails.root.join("app/assets/javascripts/#{controller_path}.js.coffee").exist? concat javascript_include_tag "#{controller_path}/#{action_name}" if Rails.root.join("app/assets/javascripts/#{controller_path}/#{action_name}.js.coffee").exist? end end |