Sha256: cbbaea592abe59895d24a66a577ba2dcc2ae85c09221c5ccf5b50495c3236627

Contents?: true

Size: 1.57 KB

Versions: 1

Compression:

Stored size: 1.57 KB

Contents

<h1>
  Reflexive </h1>

<div class="dashboard">
  <% if defined?(ActiveRecord::Base) || defined?(ApplicationController) %>
    <div class="row">
      <div class="column">
        <% if defined?(::ActiveRecord::Base) %>
          <h2>Models</h2>

          <div style="clear: both;"></div>
          <div class="content">
            <%= content_tag(:pre,
                            constants_list(::ActiveRecord::Base,
                                            Reflexive.descendants(::ActiveRecord::Base))) %>
          </div>
        <% end %>
      </div>
      <div class="column">
        <% if defined?(::ApplicationController) %>
          <h2>Controllers</h2>
          <%= content_tag(:pre,
                          constants_list(::ApplicationController,
                                          Reflexive.descendants(::ApplicationController))) %>
        <% end %>
      </div>
    </div>
  <% end %>
  <div class="row">
    <div class="column">
      <h2>Favorites</h2>
      <% favorites = filter_existing_constants(%w(Rails ActiveSupport ActiveResource
        ActiveRecord ActionView ActionController ActionDispatch ActionMailer ActiveModel
        Sinatra DataMapper Sequel Rack Arel Capistrano Gem Haml Sass Hpricot Nokogiri
        Rack Rake Rcov RDoc)) %>
      <%= content_tag(:pre,
                      constants_list(nil, favorites)) %>
    </div>
    <div class="column">
      <h2>$LOAD_PATH</h2>
      <% $LOAD_PATH.sort.each do |path| %>
        <%= link_to_file(path) %><br/>
      <% end %>
    </div>
  </div>
</div>




Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reflexive-0.0.5 views/dashboard.erb