Method: RailsAdserver.config

Defined in:
lib/rails_adserver.rb

.config(entity = nil, &block) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/rails_adserver.rb', line 4

def self.config(entity = nil, &block)
  if entity
    RailsAdserver::Config.model(entity, &block)
  elsif block_given? && ENV['SKIP_RAILS_ADMIN_INITIALIZER'] != "true"
    block.call(RailsAdserver::Config)
  else
    RailsAdserver::Config
  end
end