lib/sequel/model.rb in sequel-3.0.0 vs lib/sequel/model.rb in sequel-3.1.0

- old
+ new

@@ -65,11 +65,11 @@ INHERITED_INSTANCE_VARIABLES = {:@allowed_columns=>:dup, :@dataset_methods=>:dup, :@dataset_method_modules=>:dup, :@primary_key=>nil, :@use_transactions=>nil, :@raise_on_save_failure=>nil, :@restricted_columns=>:dup, :@restrict_primary_key=>nil, :@simple_pk=>nil, :@simple_table=>nil, :@strict_param_setting=>nil, :@typecast_empty_string_to_nil=>nil, :@typecast_on_assignment=>nil, - :@raise_on_typecast_failure=>nil} + :@raise_on_typecast_failure=>nil, :@plugins=>:dup} # Regexp that determines if a method name is normal in the sense that # it could be called directly in ruby code without using send. Used to # avoid problems when using eval with a string to define methods. NORMAL_METHOD_NAME_REGEXP = /\A[A-Za-z_][A-Za-z0-9_]*\z/ @@ -86,9 +86,10 @@ @db = nil @db_schema = nil @dataset_method_modules = [] @dataset_methods = {} @overridable_methods_module = nil + @plugins = [] @primary_key = :id @raise_on_save_failure = true @raise_on_typecast_failure = true @restrict_primary_key = true @restricted_columns = nil