Module: ObjectidColumns::HasObjectidColumns::ClassMethods

Defined in:
lib/objectid_columns/has_objectid_columns.rb

Instance Method Summary collapse

Instance Method Details

#has_objectid_columns?Boolean

Does this class have any ObjectId columns? It does if this module has been included, since it only gets included if you declare an ObjectId column.

Returns:

  • (Boolean)


34
35
36
# File 'lib/objectid_columns/has_objectid_columns.rb', line 34

def has_objectid_columns?
  true
end

#objectid_columns_managerObject



42
43
44
# File 'lib/objectid_columns/has_objectid_columns.rb', line 42

def objectid_columns_manager
  @objectid_columns_manager ||= ::ObjectidColumns::ObjectidColumnsManager.new(self)
end