Class: Ansr::Model::ClassMethods::TypeProxy

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

Instance Method Summary collapse

Constructor Details

#initialize(table) ⇒ TypeProxy

Returns a new instance of TypeProxy.



56
57
58
# File 'lib/ansr/model.rb', line 56

def initialize(table)
  @table = table
end

Instance Method Details

#[](name) ⇒ Object



60
61
62
63
# File 'lib/ansr/model.rb', line 60

def [](name)
  # this should delegate to the NoSqlAdapter
  ::ActiveRecord::ConnectionAdapters::Column.new(name.to_s, nil, String)
end