Module: NoBrainer::System::Document::ClassMethods

Defined in:
lib/no_brainer/system/document.rb

Instance Method Summary collapse

Instance Method Details

#rql_tableObject



20
21
22
# File 'lib/no_brainer/system/document.rb', line 20

def rql_table
  RethinkDB::RQL.new.db('rethinkdb').table(table_name)
end

#table_nameObject



16
17
18
# File 'lib/no_brainer/system/document.rb', line 16

def table_name
  table_config_options[:name] || name.split('::').last.underscore
end