Module: AlterAdmin

Defined in:
lib/alter_admin.rb,
lib/alter_admin/config.rb,
lib/alter_admin/engine.rb,
lib/alter_admin/version.rb,
lib/generators/alter_admin.rb,
lib/alter_admin/model_setting.rb,
lib/alter_admin/value_decorator.rb,
lib/generators/alter_admin/install/install_generator.rb,
lib/generators/alter_admin/resource/resource_generator.rb

Defined Under Namespace

Modules: Generators, Rails, ViewHelper Classes: Config, ModelSetting, ValueDecorator

Constant Summary collapse

VERSION =
"0.0.7"

Class Method Summary collapse

Class Method Details

.config(&block) ⇒ Object



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

def self.config(&block)
  @config ||= ::AlterAdmin::Config.new
  block_given? ? yield(@config) : @config
end