lib/ajax-datatables-rails/config.rb in ajax-datatables-rails-0.4.3 vs lib/ajax-datatables-rails/config.rb in ajax-datatables-rails-1.0.0
- old
+ new
@@ -2,30 +2,27 @@
require 'active_support/configurable'
module AjaxDatatablesRails
- # configure AjaxDatatablesRails global settings
+ # 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