Top Level Namespace
Defined Under Namespace
Instance Method Summary collapse
-
#setup ⇒ Object
Sets up the logger and loads all the models.
Instance Method Details
#setup ⇒ Object
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 |