Sha256: 3244f55b4d5ac253976e54e73497a2d7fc7c3f525ae3b760fbb8dacb0855bbb3
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 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 def self.old_rails? Rails::VERSION::MAJOR == 4 && (Rails::VERSION::MINOR == 1 || Rails::VERSION::MINOR == 0) end class Configuration include ActiveSupport::Configurable config_accessor(:orm) { :active_record } config_accessor(:db_adapter) { :postgresql } config_accessor(:nulls_last) { false } end end
Version data entries
3 entries across 3 versions & 1 rubygems