7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/generators/voltron/install_generator.rb', line 7
def copy_initializer
create_file Rails.root.join('config', 'initializers', 'voltron.rb'), "Voltron.setup do |config|\n\n # === Voltron Base Configuration ===\n\n # Whether to enable debug output in the browser console and terminal window\n # config.debug = false\n\n # The base url of the site. Used by various voltron-* gems to correctly build urls\n # Defaults to Rails.application.config.action_controller.default_url_options[:host], or 'localhost:3000' if not set\n # config.base_url = '\#{Rails.application.config.action_controller.default_url_options.try(:[], :host) || \"http://localhost:3000\"}'\n\n # What logger calls to Voltron.log should use\n # config.logger = Logger.new(Rails.root.join('log', 'voltron.log'))\n\n # Set the log level for JS output in the browser console.\n # Available log levels are: :debug, :info, :warn, :error, :fatal, and :unknown,\n # or each log levels corresponding number, ranging from 0 through 5 respectively.\n # For consistency the available log levels match possible options for rails' +log_level+,\n # but due to limited output options available in the browser console,\n # \"error\", \"fatal\", and \"unknown\" all behave the same way.\n # config.log_level = Rails.application.config.log_level\n\nend\n"
end
|