Top Level Namespace

Defined Under Namespace

Modules: Mebla, Mongoid

Instance Method Summary collapse

Instance Method Details

#setupObject

Sets up the logger and loads all the models



41
42
43
44
45
46
47
48
49
# File 'lib/mebla/tasks.rb', line 41

def setup
  Rails.application.eager_load!
  Mebla.configure do |config|
    config.logger = ActiveSupport::BufferedLogger.new(STDOUT)
    config.logger.level = ActiveSupport::BufferedLogger::Severity::UNKNOWN
    config.setup_logger
  end
  @context = Mebla.context
end