Module: Omnidata::Orm::ClassMethods

Defined in:
lib/omnidata/orm.rb

Instance Method Summary collapse

Instance Method Details

#table_nameObject



19
20
21
# File 'lib/omnidata/orm.rb', line 19

def table_name
  @table_name || self.name.tableize.gsub("/", "_")
end

#table_name=(str) ⇒ Object



23
24
25
# File 'lib/omnidata/orm.rb', line 23

def table_name=(str)
  @table_name = str
end