makumba_import 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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: