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:



134
135
136
# File 'lib/sequel/model.rb', line 134

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



138
139
140
141
# File 'lib/sequel/model.rb', line 138

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