lib/master_table.rb in active_finite-0.1.5 vs lib/master_table.rb in active_finite-0.2.0
- old
+ new
@@ -1,21 +1,22 @@
require_relative 'get_table.rb'
+require_relative 'external_includes.rb'
module MasterTable
def self.table_name
:active_finites
end
def self.column_name
- :value
+ default_column_name self.table_name
end
def self.table
get_table self.table_name
end
def self.all
if self.table.table_exists?
self.table
.all
- .collect {|x| x.send default_column_name.to_s}
+ .collect {|x| x.send self.column_name.to_s}
.collect {|x| get_table x}
else
[]
end
end