Sha256: 0a246d15bbeca1bab93d5b205cb2b8469834dc1bc0cdf555c5fd0c6c1f40aa3b

Contents?: true

Size: 356 Bytes

Versions: 3

Compression:

Stored size: 356 Bytes

Contents

require "rails_adserver/engine"
require "rails_adserver/config"
module RailsAdserver
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_adserver-1.0.2 lib/rails_adserver.rb
rails_adserver-1.0.1 lib/rails_adserver.rb
rails_adserver-1.0.0 lib/rails_adserver.rb