lib/ridgepole/default_limit.rb in ridgepole-0.8.12 vs lib/ridgepole/default_limit.rb in ridgepole-0.8.13

- old
+ new

@@ -21,10 +21,10 @@ default_limit = options[option_key] || defaults[column_type] || 0 default_limit.zero? ? nil : default_limit end def adapter - ActiveRecord::Base.connection_config.fetch(:adapter).to_sym + ActiveRecord::Base.connection.adapter_name.downcase.to_sym rescue ActiveRecord::ConnectionNotEstablished nil end end end