Sha256: 3506a547dac666e7fbf2cb138f3047487f4b11bace1a0f2aeab1bb0843d81236

Contents?: true

Size: 622 Bytes

Versions: 10

Compression:

Stored size: 622 Bytes

Contents

<% if Dir.exist?(MountainView.configuration.components_path) %>
  <% depend_on MountainView.configuration.components_path.to_s %>
  <% Dir.glob(MountainView.configuration.components_path.join('*')).each do |component_dir|
    component = File.basename component_dir
    begin
      require_asset "#{component}/#{component}.js"
    rescue Sprockets::FileNotFound
      Rails.logger.debug("MountainView: javascript not found for component '#{component}'")
  %>
/* MountainView: javascript not found for component '<%= component %>' */
  <%
    end
  end %>
<% else %>
  <% depend_on Rails.root.join('app').to_s %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mountain_view-0.14.0 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.13.0 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.12.3 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.12.2 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.12.1 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.12.0 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.11.0 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.10.0 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.9.1 app/assets/javascripts/mountain_view.js.erb
mountain_view-0.9.0 app/assets/javascripts/mountain_view.js.erb