Displaying 1 result from an estimated 1 matches for "class_name_from_t".
2006 Jul 28
0
reserved words
...with and a management area that lists what changes are to be done (with
ability to cancel, etc..).
So, there are no model files for the entries. They are created dynamically
with the following lib:
module Stone
module Dynamic
class << self
def klass(table_name)
tname = class_name_from_table(table_name)
const_missing(tname)
rescue NameError
define_klass(table_name)
end
def objeck(table_name)
klass(table_name).new
end
private
def class_name_from_table(table_name)
Inflector.camelize(table_name)
end...