Module: AdminData::SetupConfig::ClassMethods

Defined in:
lib/admin_data/setup_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configurationObject

See AdminData::Configuration for details.



9
10
11
# File 'lib/admin_data/setup_config.rb', line 9

def configuration
  @configuration
end

Instance Method Details

#configObject

Call this method to customize the behavior of admin_data .

Examples:

AdminData.config do |config|
  config.number_of_records_per_page = 20
end


17
18
19
20
# File 'lib/admin_data/setup_config.rb', line 17

def config
  self.configuration ||= Configuration.new
  block_given? ? yield(configuration) : configuration
end