Class: ActiveRecord::ConnectionAdapters::NullDBAdapter::NullObject

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/nulldb_adapter/null_object.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



4
5
6
# File 'lib/active_record/connection_adapters/nulldb_adapter/null_object.rb', line 4

def method_missing(*args, &block)
  nil
end

Instance Method Details

#to_aObject



8
9
10
# File 'lib/active_record/connection_adapters/nulldb_adapter/null_object.rb', line 8

def to_a
  []
end