makumba_import 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/makumba_import/importer.rb +3 -3
  2. metadata +1 -1
@@ -214,9 +214,9 @@ module MakumbaImport
214
214
  txt << "# " + tablename.classify.tableize.singularize + ".rb\n\n"
215
215
 
216
216
  txt << "class "+tablename.classify+" < ActiveRecord::Base\n"
217
- txt << " set_table_name \""+tablename+"_\"\n"
218
- txt << " set_primary_key \""+lastpart+"_\"\n"
219
- txt << " set_makumba_pointer_type \""+key+"\"\n\n"
217
+ txt << " self.table_name = \""+tablename+"_\"\n"
218
+ txt << " self.primary_key = \""+lastpart+"_\"\n"
219
+ txt << " self.pointer_type = \""+key+"\"\n\n"
220
220
 
221
221
  table.each do |name, field|
222
222
  if name == 'ref'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makumba_import
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: