Sha256: f8cc42997f2ea2bd2cf28df48d8886b78cd9956aba2849df63495bc6b79600ed

Contents?: true

Size: 1.65 KB

Versions: 3

Compression:

Stored size: 1.65 KB

Contents

<h1> Reflexive </h1>

<div class="dashboard">
  <% if defined?(ActiveRecord::Base) || defined?(ApplicationController) %>
    <div class="row">
      <div class="column first">
        <% 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 first">
      <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
        CGI Date Net REXML URI YAML FileUtils OpenStruct Pathname Time)) %>
      <%= 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

3 entries across 3 versions & 1 rubygems

Version Path
reflexive-0.1.2 views/dashboard.erb
reflexive-0.1.1 views/dashboard.erb
reflexive-0.1.0 views/dashboard.erb