Module: Console

Defined in:
lib/console.rb,
lib/console/engine.rb,
lib/console/version.rb,
lib/console/config_file.rb,
lib/console/configuration.rb,
app/controllers/console/rescue.rb,
lib/console/formtastic/bootstrap_form_builder.rb

Defined Under Namespace

Modules: CommunityHelper, ConsoleHelper, Formtastic, HelpHelper, Html5BoilerplateHelper, LayoutHelper, ModelHelper, Rescue, SecuredHelper, VERSION Classes: AccessDenied, ApiNotAvailable, ConfigFile, Configuration, Engine, InvalidConfiguration

Class Method Summary collapse

Class Method Details

.configObject

Global settings for Console



17
18
19
# File 'lib/console/configuration.rb', line 17

def self.config
  @config ||= Configuration.new
end

.configure(file = nil) {|config| ... } ⇒ Object

Configures global settings for Console Console.configure do |config| config.disable_assets = 10 end

Yields:



11
12
13
14
# File 'lib/console/configuration.rb', line 11

def self.configure(file=nil,&block)
  config.send(:load, file) if file
  yield config if block_given?
end