Module: Vanity::Rails

Defined in:
lib/vanity/frameworks/rails.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Dashboard, Filters, Helpers, UseVanity

Class Method Summary collapse

Class Method Details

.load!Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/vanity/frameworks/rails.rb', line 3

def self.load!
  Vanity.playground.load_path = ::Rails.root + Vanity.playground.load_path
  Vanity.playground.logger ||= ::Rails.logger

  # Do this at the very end of initialization, allowing you to change
  # connection adapter, turn collection on/off, etc.
  ::Rails.configuration.after_initialize do
    Vanity.playground.load!
  end
end