Sha256: 89d7c6979896e62569edaf14428637d79c96080408c6834a2361a3e2d0f93616

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

require 'active_support/configurable'

module AjaxDatatablesRails

  # configure AjaxDatatablesRails global settings
  #   AjaxDatatablesRails.configure do |config|
  #     config.db_adapter = :pg
  #   end
  def self.configure &block
    yield @config ||= AjaxDatatablesRails::Configuration.new
  end

  # AjaxDatatablesRails global settings
  def self.config
    @config ||= AjaxDatatablesRails::Configuration.new
  end

  class Configuration
    include ActiveSupport::Configurable

    # default db_adapter is pg (postgresql)
    config_accessor(:db_adapter) { :pg }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ajax-datatables-rails-0.2.1 lib/ajax-datatables-rails/config.rb