Sha256: 8cfc4dcf75dfa78d602e0e7763097b43ea5e3bc6f47724837a039e3a841cf018

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

require 'active_support/configurable'

module AjaxDatatablesRails

  # Configure AjaxDatatablesRails global settings
  #
  #   AjaxDatatablesRails.configure do |config|
  #     config.db_adapter = :postgresql
  #   end

  def self.configure
    yield @config ||= AjaxDatatablesRails::Configuration.new
  end

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

  class Configuration
    include ActiveSupport::Configurable

    config_accessor(:db_adapter) { :postgresql }
    config_accessor(:nulls_last) { false }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ajax-datatables-rails-1.1.0 lib/ajax-datatables-rails/config.rb
ajax-datatables-rails-1.0.0 lib/ajax-datatables-rails/config.rb