Class: Sequel::Model::DeprecatedColumnsUpdated

Inherits:
Object
  • Object
show all
Defined in:
lib/sequel/model.rb

Overview

SEQUEL5: Remove

Instance Method Summary collapse

Constructor Details

#initialize(columns_updated) ⇒ DeprecatedColumnsUpdated

:nodoc:



108
109
110
# File 'lib/sequel/model.rb', line 108

def initialize(columns_updated)
  @columns_updated = columns_updated
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



112
113
114
115
# File 'lib/sequel/model.rb', line 112

def method_missing(*args, &block)
  Sequel::Deprecation.deprecate("Accessing @columns_updated directly", "Use the columns_updated plugin and switch to the columns_updated method")
  @columns_updated.send(*args, &block)
end