123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::Configurable::ClassMethods

Relationships & Source Files
Defined in: activesupport/lib/active_support/configurable.rb

Instance Method Summary

Instance Method Details

#config

[ GitHub ]

  
# File 'activesupport/lib/active_support/configurable.rb', line 30

def config
  @_config ||= if respond_to?(:superclass) && superclass.respond_to?(:config)
    superclass.config.inheritable_copy
  else
    # create a new "anonymous" class that will host the compiled reader methods
    Class.new(Configuration).new
  end
end

#configure {|config| ... }

Yields:

[ GitHub ]

  
# File 'activesupport/lib/active_support/configurable.rb', line 39

def configure
  yield config
end