lib/sequel/plugins/bitemporal.rb in sequel_bitemporal-0.7.8 vs lib/sequel/plugins/bitemporal.rb in sequel_bitemporal-0.8.0
- old
+ new
@@ -59,9 +59,10 @@
@audit_class = opts[:audit_class]
@audit_updated_by_method = opts.fetch(:audit_updated_by_method){ :updated_by }
@propagate_per_column = opts.fetch(:propagate_per_column, false)
@version_uses_string_nilifier = version.plugins.map(&:to_s).include? "Sequel::Plugins::StringNilifier"
@excluded_columns = Sequel::Plugins::Bitemporal.bitemporal_excluded_columns
+ @excluded_columns += columns
@excluded_columns += Array opts[:excluded_columns] if opts[:excluded_columns]
@use_ranges = if opts[:ranges]
db = self.db
unless db.database_type==:postgres && db.server_version >= 90200
raise "Ranges require PostgreSQL 9.2"