# File lib/mega/orm_support.rb, line 100 def keyname( type=nil ) case type when :_id self.basename.underscore + "_id" when :id self.basename.underscore + "id" when :_key self.basename.underscore + "_key" when :key self.basename.underscore + "key" else self.basename.underscore + ORMSupport.default_key end end