Sha256: 42a7994ff2912e696bf453063ca577b9323323f18926501c5852bb024735b4c1

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

module MetaModel
  module ApplicationHelper
    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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neo4j-meta_model-0.0.1 app/helpers/meta_model/application_helper.rb